Skip to content

Commit

Permalink
Use new editor API
Browse files Browse the repository at this point in the history
  • Loading branch information
obuchtala committed Nov 28, 2016
1 parent 87529b2 commit a6f0aa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inline-node/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
Component, ProseEditor, ProseEditorConfigurator, EditorSession,
ProseEditorPackage, InlineNode, InsertInlineNodeCommand, EditInlineNodeCommand,
AnnotationTool, Tool, deleteSelection, substanceGlobals
AnnotationTool, Tool, substanceGlobals
} from 'substance'

substanceGlobals.DEBUG_RENDERING = true;
Expand Down Expand Up @@ -70,8 +70,8 @@ class EditInlineImageTool extends Tool {

onDelete() {
let editorSession = this.context.editorSession
editorSession.transaction(function(tx, args) {
return deleteSelection(tx, args)
editorSession.transaction(function(tx) {
tx.deleteSelection()
})
}
}
Expand Down

0 comments on commit a6f0aa2

Please sign in to comment.