react-plain-editable
react-plain-editable copied to clipboard
Convert pasted rich text to plain text
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.
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.