mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 23:15:15 +08:00
refactoring
This commit is contained in:
parent
c5d6b19d1b
commit
48234cf751
@ -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')
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user