react-plain-editable icon indicating copy to clipboard operation
react-plain-editable copied to clipboard

Convert pasted rich text to plain text

Open insin opened this issue 10 years ago • 1 comments

Current flat-out stripping of tags loses linebreaks and leads to other weird spacing issues when rich text is pasted.

Searching around suggests implementing this is fraught with pain and terror.

insin avatar Feb 20 '15 14:02 insin

This was briefly in master for 2.0.0, but modifying innerHTML under the user causes cursor jumping. There are entire libraries devoted to the sort of cross-browser range stuff you need to do to solve this properly.

insin avatar Feb 26 '15 16:02 insin