Repository navigation
Paste in lexical
#2553
|
Who can tell me, how I can get connected to the insertion, I need to create a custom plugin for inserting images via cmd + v and load to the server, then paste url in to img |
Answered by
acywatson
Jun 30, 2022
Replies: 2 comments 1 reply
|
I am also struggling to find something similar to what I am using with DraftJS to trigger an action depending on which content has been paste to the editor: |
0 replies
|
You can use the command system to do something in response to a paste action: More on commands: |
1 reply
Answer selected by
dunaevski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the command system to do something in response to a paste action:
https://github.com/facebook/lexical/blob/5caf9231d456cadeb0f83fb69602b3bc6e433710/packages/lexical-rich-text/src/index.ts#L826
More on commands:
https://lexical.dev/docs/concepts/commands