Merge branch 'feature/allow-option-for-suggestions' into feature/remove-inferred-commands

This commit is contained in:
Philipp Kühn
2021-02-10 14:52:20 +01:00
2 changed files with 12 additions and 1 deletions

View File

@@ -23,6 +23,12 @@ export const Mention = Node.create({
.insertText(' ')
.run()
},
allow: ({ editor, range }) => {
// TODO: circular type. everthing explodes :—(
return (editor as any)
.can()
.replaceRange(range, 'mention')
},
},
},