add replaceWithNode command

This commit is contained in:
Philipp Kühn
2020-04-22 14:38:15 +02:00
parent fd8f5de375
commit 9f53481e01
3 changed files with 40 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ export class Editor extends EventEmitter {
this.registerCommand('insertText', require('./commands/insertText').default)
this.registerCommand('removeMark', require('./commands/removeMark').default)
this.registerCommand('removeMarks', require('./commands/removeMarks').default)
this.registerCommand('replaceWithNode', require('./commands/replaceWithNode').default)
this.registerCommand('selectAll', require('./commands/selectAll').default)
this.registerCommand('selectParentNode', require('./commands/selectParentNode').default)
this.registerCommand('setContent', require('./commands/setContent').default)