Skip to content
Snippets Groups Projects
Commit aeb0c8f9 authored by chris's avatar chris Committed by john
Browse files

change onRender to onUpdate

parent 002fdce2
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment