diff --git a/app/components/SimpleEditor/miniEditor/miniEditor.js b/app/components/SimpleEditor/miniEditor/miniEditor.js index e26b1389971b99321b487d2c4576ad3b479dcb65..fd81c1f3c570d2d602b2535fc7c6f3cdb533dbce 100644 --- a/app/components/SimpleEditor/miniEditor/miniEditor.js +++ b/app/components/SimpleEditor/miniEditor/miniEditor.js @@ -9,13 +9,14 @@ import CommentsProvider from '../panes/Comments/CommentsProvider' import TrackChangesProvider from '../elements/track_change/TrackChangesProvider' import SimpleExporter from '../SimpleEditorExporter' import _ from 'lodash' + class MiniEditor extends ProseEditor { didMount () { const provider = this.getProvider() provider.config.miniEditorContext = this.getChildContext() provider.config.miniEditorSession = this.editorSession - this.editorSession.onRender('document', this.findNote, this) + this.editorSession.onUpdate('document', this.findNote, this) this.on('noteSelected', this.scrollTo, this) this.on('notes:inserted', this.createNote, this) this.on('notes:deleted', this.removeNote, this)