-
Notifications
You must be signed in to change notification settings - Fork 17
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
Instantiate EditorState from HTML #2
Comments
That is a good question, I don't have an answer for you right now but I will look into it and see of that would be possible. It would really be a nice to be able to import html -> draft-js and keep the styles consistent. |
Thanks! |
When this issue will be fixed? |
@aamirbhat I am not doing any type of development with draft-js , or any draft-js library. If you would like to add an additional feature please submit a PR with tests and I will gladly take a look at it and merge it. |
I have the functionality for this issue working but It depends on having a PR to draft-js-utils accepted. |
I was able to resolve this using the
I hope this is helpful. |
Hi,
Thanks for developing such a useful library!
My question might seem dumb but I can't figure how to do it... How can I generate an
EditorState
out of exported HTML, which preserves inline styles?I use the following chunk of code to get HTML from an
editorState
, which works perfectly:But then, when I do:
I lose the
font-size
. Any hints?Thanks a lot!
The text was updated successfully, but these errors were encountered: