Replies: 2 comments
-
@Saul-Mirone One question. How may I register totally new node? For example I want to create |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can just |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create
mention
node that works exactly the same as https://github.com/joelewis/prosemirror-mentions.How may I register this node to the schema? 🤔 I just need to use
$nodeSchema('mention', () => ... )
and that's it? I'm asking, because I'm gettingCannot handle unknown node 'mentions'
. Do I really need to create remark plugin that looks almost the same aswrapInMentionsInputRule
?This is my schema so far 🤔
Basically, I'm following this tutorial: https://milkdown.dev/docs/plugin/example-iframe-plugin, however my scenario is more complex, as I need to render dropdown with suggestions, while user is typing.
Should I use
markSchema
for such feature? However, I will need to extend "mention" with some UI, as I mentioned above, somarkSchema
might not be good choice 🤔Any advices?
Beta Was this translation helpful? Give feedback.
All reactions