convertFromHtml ignores colors
Hello,
when using the method convertFromHtml the color is ignored.
Example:
<p><span style="color: rgb(226,80,65);"><del><strong>asasdsad</strong></del></span></p>
The whole formatting is correct, only the color is missing.
I am struggling with this issue too. Is there a way to handle it? I guess every style passed as style
html attribute will be ignored. Do you guys have any plans to support it? I will highly appreciate if you give us an idea to workaround it.
I am struggling with this issue too. Is there a way to handle it? I guess every style passed as
stylehtml attribute will be ignored. Do you guys have any plans to support it? I will highly appreciate if you give us an idea to workaround it.
Hey,
i solved it by using a different module. Here's what im using now: 'html-to-draftjs';
My react import: import htmlToDraft from 'html-to-draftjs';
I hope this helps you.
Good question. I found the code here useful: https://blog.learningdollars.com/2020/04/01/how-to-add-a-rich-text-editor-in-your-react-app-using-draft-js-and-react-draft-wysiwyg/
I am facing the same issue too any workarounds?
I found a workaround, see here I hope it will help anyone who face this problem
go to this link https://blog.ldtalentwork.com/2020/04/01/how-to-add-a-rich-text-editor-in-your-react-app-using-draft-js-and-react-draft-wysiwyg/