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

Can't import what is exported with draft-js-export-html (version 0.2.0) #10

Open
stevebeisner opened this issue Jul 30, 2016 · 8 comments

Comments

@stevebeisner
Copy link

Or maybe I'm missing something?

Exporting using stateToHTML with an options argument for some custom
inlineStyles... works great: the exported HTML looks exactly as specified.

The problem: having exported it, there appears to be no way to import the
same HTML using stateFromHTML, without losing the custom styling.
I tried passing the same options argument, but it apparently is ignored.

@ademars94
Copy link

Having the same issue with inline color styles.

@milushov
Copy link

milushov commented Sep 5, 2016

yo, guys, any news?

@stevebeisner
Copy link
Author

No solution yet. I've switched over to react-tinymce npm package for now,
but I'd probably switch back to draftjs if I could find a solution.

@ademars94
Copy link

We decided to go ahead with tinymce as well.

@chanr32
Copy link

chanr32 commented Sep 20, 2016

will this be supported any time soon?

@benbriggs
Copy link

I'd encourage you guys to check out draft-convert, it should handle the cases you're looking for.

@shikelong
Copy link

+1

@alexander-lebed
Copy link

@benbriggs Thank you!!

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

7 participants