From aeb0c8f93da7008bbc9cde3de3006781fe9fc4f1 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Sat, 22 Apr 2017 18:50:20 +0300 Subject: [PATCH] change onRender to onUpdate --- app/components/SimpleEditor/miniEditor/miniEditor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/SimpleEditor/miniEditor/miniEditor.js b/app/components/SimpleEditor/miniEditor/miniEditor.js index e26b138..fd81c1f 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) -- GitLab