draft-js-import-html icon indicating copy to clipboard operation
draft-js-import-html copied to clipboard

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

Open stevebeisner opened this issue 9 years ago • 8 comments

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.

stevebeisner avatar Jul 30 '16 20:07 stevebeisner

Having the same issue with inline color styles.

ademars94 avatar Aug 30 '16 16:08 ademars94

yo, guys, any news?

milushov avatar Sep 05 '16 10:09 milushov

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.

stevebeisner avatar Sep 05 '16 13:09 stevebeisner

We decided to go ahead with tinymce as well.

ademars94 avatar Sep 07 '16 07:09 ademars94

will this be supported any time soon?

chanr32 avatar Sep 20 '16 06:09 chanr32

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

benbriggs avatar Nov 03 '16 15:11 benbriggs

+1

shikelong avatar Dec 15 '16 08:12 shikelong

@benbriggs Thank you!!

alexander-lebed avatar Feb 02 '17 15:02 alexander-lebed