1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge pull request #1899 from ehhc/deleting_of_attachment_link

Deleting of attachments -> fixes #1828 and fixes #740
This commit is contained in:
Junyoung Choi (Sai)
2018-05-15 15:52:31 +09:00
committed by GitHub
3 changed files with 100 additions and 1 deletions

View File

@@ -36,6 +36,9 @@ export default class CodeEditor extends React.Component {
el = el.parentNode
}
this.props.onBlur != null && this.props.onBlur(e)
const {storageKey, noteKey} = this.props
attachmentManagement.deleteAttachmentsNotPresentInNote(this.editor.getValue(), storageKey, noteKey)
}
this.pasteHandler = (editor, e) => this.handlePaste(editor, e)
this.loadStyleHandler = (e) => {