Is there a way to get multi stage Suggestions in Editor? eg. type "#main" (st1) >> #main:sub (st2) #6524
Replies: 2 comments
-
|
As already answered on Discord - not by default. You could make this out of two separate suggestions. First one triggers on I never build something like this but I think that would be the correct way to do it for at least separate mentions. Your requirements probably will need a lot more custom logic to make this work in one mention. |
Beta Was this translation helpful? Give feedback.
-
|
Were you able to achieve this "nested" behavior using the I'm trying something similar, but failing miserably. The menus start to stack, since they share a common trigger character. Sandbox showing what I got so far. I tried setting the same pluginKey as an attempt that only the 'most recent one' would show up, but it doesn't work. Feeling really stuck on this one and I would appreciate any suggestions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to do something like this in the Editor with Mentions/Suggestions:
typing "#"
triggers suggestions "main1" | "main2" | ... etc
selection of "main2"
inserts "#main2:" into the text area;
<<< Stage1 selectioncontinue typing "sub", eg "#main2:sub" ,
triggers suggestions "sub1" | "sub2" | ... etc
selection of "sub5"
inserts "#main2:sub5" into the text area;
<<< Stage2 selectionHow to achieve this with Tiptap (v2)?
Beta Was this translation helpful? Give feedback.
All reactions