Skip to content
Snippets Groups Projects
Commit fd335f35 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

delete images normally even if track changes is on

parent 6f36ff67
No related branches found
No related tags found
No related merge requests found
......@@ -432,6 +432,11 @@ class TrackChangesProvider extends TOCProvider {
return console.warn('Cannot delete a container')
}
if (selection.isNodeSelection()) {
if (selection.isCollapsed()) return this.deleteCharacter('left')
return this.deleteSelection(selection)
}
const transformation = (tx, args) => {
const newNode = {
selection: selection,
......
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