springload / draftjs_exporter

Convert Draft.js ContentState to HTML
https://www.draftail.org/blog/2018/03/13/rethinking-rich-text-pipelines-with-draft-js
MIT License
83 stars 21 forks source link

QUESTION - Can I create JSON from HTML with this code? #115

Closed rodfersou closed 5 years ago

rodfersou commented 5 years ago

My use case need to migrate rich text content into JSON used in DraftJS, is it possible to do this with this code?

thibaudcolas commented 5 years ago

Hey @rodfersou 👋 no, this library is Draft.js JSON -> HTML only, it doesn’t cover the other way around. draft-convert supports HTML -> Draft.js, but that’s a Node package.

rodfersou commented 5 years ago

@thibaudcolas thanks for the answer