How does react-draft-wysiwyg clean up the styles brought in by copied text?

how does react-draft-wysiwyg clean up the styles brought in by copied text? Copying text similar to the following is pasted into the react-draft-wysiwyg copy editor to generate a span tag.

what I want should be:

Hey this is editor rocks


I added a button to clear the style, but I have to select the text with the style before I can clear the style. Selecting one more space will not clear the style.
Please all the big guys and gods to help me.

Sep.08,2021

listens to paste events and replaces style tags with


landlords. How do you solve it? Share it

Menu