rename suggestion command argument

This commit is contained in:
Philipp Kühn
2021-01-21 12:28:58 +01:00
parent a2d5eef6b2
commit 319eb83303
3 changed files with 9 additions and 9 deletions

View File

@@ -15,11 +15,11 @@ export const Mention = Node.create({
HTMLAttributes: {},
suggestion: {
char: '@',
command: ({ editor, range, attributes }) => {
command: ({ editor, range, props }) => {
editor
.chain()
.focus()
.replaceRange(range, 'mention', attributes)
.replaceRange(range, 'mention', props)
.insertText(' ')
.run()
},