How to add a rich text plugin to handle pasted content? #984
Unanswered
EasonSoong
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hello guys, any suggestions about this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @EasonSoong — this is a good question. I think we need to re-order plugin execution, so that your plugin is executed before the built-in paste handling. That will solve this issue. It would be a trivial PR to make as well if you are up for it. Would just need to reorder the plugin wrapping within the rich text component itself. Are you up for a PR? Otherwise we can get to this at some point soon! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found payload rich text editor has a withHTML plugin by default. And it handles the pasted content from other places like google doc. When I try to use my own plugin to handle the pasted content. I found it's impossible because the withHTML's plugin will be executed before my plugin and just return in some conditions without triggering my plugin. Is there a way to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions