refactoring

This commit is contained in:
Philipp Kühn 2021-02-10 14:53:46 +01:00
parent c5d6b19d1b
commit 48234cf751

View File

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