add insertHTML command

This commit is contained in:
Philipp Kühn
2019-12-14 23:54:20 +01:00
parent 90f86bafbb
commit 6f1aedb2b2
4 changed files with 55 additions and 14 deletions

View File

@@ -9,6 +9,7 @@ import {addListNodes} from "prosemirror-schema-list"
import {exampleSetup} from "prosemirror-example-setup"
import insertText from './commands/insertText'
import insertHTML from './commands/insertHTML'
import focus from './commands/focus'
interface EditorOptions {
@@ -36,6 +37,7 @@ export class Editor {
this.view = this.createView()
this.registerCommand('focus', focus)
this.registerCommand('insertText', insertText)
this.registerCommand('insertHTML', insertHTML)
}
get state() {