How to handle copy & paste when using a ReactNodeView with NodeViewContent #4831
-
Hi, I've been struggling with this issue for a couple days so figured I would ask here. I'm using a ReactNodeView with a NodeViewContent and I can't figure out how to handle preserving the NodeViewContent when the node is copy and pasted. I modify the renderHTML method in order to generate a email friendly HTML output so I'm thinking I need to add something to the parseHTML method in order to parse the contents of the node but can't figure out how to do it.
renderHTML,
The copied HTML,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For anyone who ends up here, I ended up solving it with the following,
|
Beta Was this translation helpful? Give feedback.
For anyone who ends up here, I ended up solving it with the following,