add replaceRange command

This commit is contained in:
Philipp Kühn
2021-01-20 20:37:53 +01:00
parent 1880b43e37
commit 55d767d94c
5 changed files with 34 additions and 20 deletions

View File

@@ -19,7 +19,7 @@ export const Mention = Node.create({
editor
.chain()
.focus()
.replace(range, 'mention', attributes)
.replaceRange(range, 'mention', attributes)
.insertText(' ')
.run()
},