Skip to content
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

htmlToDraft ignores style attribute #122

Open
slipenk opened this issue Mar 31, 2022 · 3 comments
Open

htmlToDraft ignores style attribute #122

slipenk opened this issue Mar 31, 2022 · 3 comments

Comments

@slipenk
Copy link

slipenk commented Mar 31, 2022

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?

@sameershaikh55
Copy link

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
Copy link

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

@Flip437
Copy link

Flip437 commented Apr 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants