1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Deleting of attachments -> fixes #1828 and fixes #740

This commit is contained in:
ehhc
2018-05-10 20:27:47 +02:00
parent 90e8dd038d
commit ffc3fb770c
3 changed files with 100 additions and 1 deletions

View File

@@ -50,6 +50,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) => {