From 3e8314af67d1e62abb9393e24f30915aa924fc94 Mon Sep 17 00:00:00 2001 From: yannis <yannisbarlas@gmail.com> Date: Fri, 28 Apr 2017 16:24:20 +0300 Subject: [PATCH] use notes editor surface manager correctly --- app/components/SimpleEditor/notesEditor/NotesEditor.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/SimpleEditor/notesEditor/NotesEditor.js b/app/components/SimpleEditor/notesEditor/NotesEditor.js index d7dab2e..99c0e4f 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 () { -- GitLab