feat: add insertContent() command, deprecate insertText(), insertHTML() and insertNode()

This commit is contained in:
Philipp Kühn
2021-04-07 11:53:37 +02:00
parent 63acc57305
commit b8d9b7d4c7
21 changed files with 198 additions and 113 deletions

View File

@@ -20,7 +20,7 @@ export const Mention = Node.create<MentionOptions>({
.chain()
.focus()
.replaceRange(range, 'mention', props)
.insertText(' ')
.insertContent(' ')
.run()
},
allow: ({ editor, range }) => {