-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Underline style is removed after converting HTML to DraftJS Editor content #61
Comments
Anyone? |
Hey, I wondered the same, apparently, it is "ins" in this context, not "u". And b is strong. |
Any solution? I would like for to not be stripped away. And its definitely because of the ins/u issue as if I use |
Same for me the package converts the |
This is a pretty old issue. any update on this one ? |
here i find the solution of this problem:- Example:-
My issue is resolved,hope your also by doing this |
@Amitmath0987 thanks.. your solution worked for me. |
Let's say I pass this HTML:
<p><u>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</u></p>
When I convert it to DraftJS content and set it as editor state, the editor shows no trace of any underlined text. I checked if the issue is possibly with the package that I use to convert back to HTML string, but it doesn't seems like it.
Here's what I do:
`
`
Am I doing something wrong, or is there a bug with the package?
The text was updated successfully, but these errors were encountered: