Insert a value at cursor's position #147
Replies: 2 comments 4 replies
-
Can you show what you've done so far? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Sometime after this discussion, the editor implemented a method |
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
-
Hi,
I've tried to extend the library and use Lexical to create a plugin for a dropdown button with a list of strings such as "[{name: "Name", value: "name}]". When the user clicks in the middle of the text and then selects an item from the dropdown, the value should be inserted where the cursor is.
I'm really stuck and I have no idea how to do it, because everything I've tried so far was a dead end. I've tried to look at the source code and also to access Lexical's state, but no success. So if anyone has a bit spare time, could you please show me what should be done in order to achieve that functionality?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions