refactoring

This commit is contained in:
Philipp Kühn
2021-01-19 10:09:32 +01:00
committed by Hans Pagel
parent ba5d38a621
commit 9af0d76d67
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()