-
Hi there, I am trying to adopt Mentions example but make it work with #tags instead. Currently, it shows the dropdown after inserting Here is the code example: https://codesandbox.io/s/slate-tags-editor-ckkm1?file=/src/editor.tsx Thank you for any ideas! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's more complicated than it looks. The entire premise of that code is that there needs to be two words, it finds the point before them both and then checks if the string of the two words is Doing it for a single character means a dedicated search just for it: |
Beta Was this translation helpful? Give feedback.
It's more complicated than it looks. The entire premise of that code is that there needs to be two words, it finds the point before them both and then checks if the string of the two words is
#<text>
.Doing it for a single character means a dedicated search just for it:
https://codesandbox.io/s/slate-tags-editor-forked-1imot?file=/src/editor.tsx