2 ms·
Has anyone figured out how to get a string of HTML out of this? I tried bouncing around with the $r object in the Chrome devtools console on http://facebook.git
by simonw 11y ago
Has anyone figured out how to get a string of HTML out of this? I tried bouncing around with the $r object in the Chrome devtools console on http://facebook.github.io/draft-js/ http://facebook.github.io/draft-js/ but couldn't work out how I would return a string of HTML suitable for persisting to a server.
- palmdeezy 11y agoYou need to write a parser to translate ContentState into markup. See http://facebook.github.io/draft-js/docs/api-reference-data-conversion.html#content http://facebook.github.io/draft-js/docs/api-reference-data-c...