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 |
Beta Was this translation helpful? Give feedback.
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: |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use the command system to do something in response to a paste action: More on commands: |
Beta Was this translation helpful? Give feedback.
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:
lexical/packages/lexical-rich-text/src/index.ts
Line 826 in 5caf923
More on commands:
https://lexical.dev/docs/concepts/commands