refactoring

This commit is contained in:
Philipp Kühn
2021-01-19 10:09:32 +01:00
parent aaa0832883
commit c13d65c842
7 changed files with 46 additions and 22 deletions

View File

@@ -8,7 +8,6 @@ export const Mention = Node.create({
defaultOptions: <MentionOptions>{
char: '@',
render: () => ({}),
},
group: 'inline',
@@ -50,6 +49,7 @@ export const Mention = Node.create({
command: ({ range }) => {
this.editor
.chain()
.focus()
.replace(range, 'mention')
.insertText(' ')
.run()