diff --git a/app/components/SimpleEditor/notesEditor/NotesEditor.js b/app/components/SimpleEditor/notesEditor/NotesEditor.js index d7dab2e8d0460ae2a8a3dba558451b5297365293..99c0e4f1a50c4f2712f3e814c79ed43ed84dd691 100644 --- a/app/components/SimpleEditor/notesEditor/NotesEditor.js +++ b/app/components/SimpleEditor/notesEditor/NotesEditor.js @@ -162,7 +162,7 @@ class NotesEditor extends ProseEditor { this.editorSession.setSelection(null) this.context.editorSession.setSelection(null) } - + const exporter = new SimpleExporter(this.props.configurator.config) const convertedNode = exporter.convertNode(isolatedNote) this.context.editorSession.transaction(function (tx, args) { @@ -213,8 +213,7 @@ class NotesEditor extends ProseEditor { getSurface () { const containerId = this.props.containerId - const provider = this.getProvider() - return provider.config.notesEditorContext.surfaceManager.getSurface(containerId) + return this.surfaceManager.getSurface(containerId) } getChildContext () {