sstur / react-rte

Pure React rich text WYSIWYG editor based on draft-js.
https://react-rte.org
ISC License
2.86k stars 430 forks source link

Input saves incorrectly if a trailing space is italicized #313

Open sherpadougs opened 5 years ago

sherpadougs commented 5 years ago

Hey! We're having an issue with saving strings like this:

This is a _really _cool rhinoceros

Note that there is an extra space selected after the word 'really'. Doing this prevents the string from being saved correctly. The odd thing is that it only breaks for italics, underline and strikethrough - doing this using Bold doesn't break anything.

Is there a way we can fix this? We are using version 0.16.0.

binchik commented 5 years ago

Hey @sherpadougs, we're having exact same issue. Did you come up with anything?

jamiesauve commented 5 years ago

@binchik I'm afraid not - we never heard anything back. :/

binchik commented 5 years ago

@DougSauve what a pity. Thanks for your time.

spik3r commented 3 years ago

We're having the same issue... bump @sstur

tshields86 commented 3 years ago

Same issue for us, underline and italics with either leading or trailing whitespace. Bump @sstur

joaoBernado commented 2 years ago

Hi @sstur ,

we are looking to solve this issue. are you giving support to the project and accepting merge requests?

sstur commented 2 years ago

Happy to accept a PR for this. Thanks @joaoBernado!