Skip to content
Snippets Groups Projects
Commit 3e8314af authored by Yannis Barlas's avatar Yannis Barlas Committed by john
Browse files

use notes editor surface manager correctly

parent 13dde0b3
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ class NotesEditor extends ProseEditor { ...@@ -162,7 +162,7 @@ class NotesEditor extends ProseEditor {
this.editorSession.setSelection(null) this.editorSession.setSelection(null)
this.context.editorSession.setSelection(null) this.context.editorSession.setSelection(null)
} }
const exporter = new SimpleExporter(this.props.configurator.config) const exporter = new SimpleExporter(this.props.configurator.config)
const convertedNode = exporter.convertNode(isolatedNote) const convertedNode = exporter.convertNode(isolatedNote)
this.context.editorSession.transaction(function (tx, args) { this.context.editorSession.transaction(function (tx, args) {
...@@ -213,8 +213,7 @@ class NotesEditor extends ProseEditor { ...@@ -213,8 +213,7 @@ class NotesEditor extends ProseEditor {
getSurface () { getSurface () {
const containerId = this.props.containerId const containerId = this.props.containerId
const provider = this.getProvider() return this.surfaceManager.getSurface(containerId)
return provider.config.notesEditorContext.surfaceManager.getSurface(containerId)
} }
getChildContext () { getChildContext () {
......
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