html-to-draftjs icon indicating copy to clipboard operation
html-to-draftjs copied to clipboard

htmlToDraft ignores style attribute

Open slipenk opened this issue 3 years ago • 3 comments

Hello :)

I need simply colorful text with HTML for the initial state.

I have a span with attribute style=" color: red ", but this style is not working during conversion.

Please, can you provide some solutions to this?

slipenk avatar Mar 31 '22 20:03 slipenk

I am also facing the same issue, font size, background color, font color and some other blockquotes, etc are not converting in htmlToDraft,

I am finding a solution for more than a week now.

can anyone help me with this?

sameershaikh55 avatar Apr 14 '22 02:04 sameershaikh55

Hello :)

I need simply colorful text with HTML for the initial state.

I have a span with attribute style=" color: red ", but this style is not working during conversion.

Please, can you provide some solutions to this?

====================

I have fixed that by myself. this package worked for me: https://www.npmjs.com/package/html-to-draftjs feel free to ask if you need any help

sameershaikh55 avatar Apr 15 '22 05:04 sameershaikh55

Hello :) I need simply colorful text with HTML for the initial state. I have a span with attribute style=" color: red ", but this style is not working during conversion. Please, can you provide some solutions to this?

====================

I have fixed that by myself. this package worked for me: https://www.npmjs.com/package/html-to-draftjs feel free to ask if you need any help

What is the package you're talking about ? The link you provided gets to this current package. Maybe a bad copy / paste

Flip437 avatar Apr 04 '23 18:04 Flip437