Open katpas opened 6 years ago
For the time being, you will need to convert the raw (JSON-style structure) to an actual contentState (ImmutableJS-style structure) in order for stateToHTML to work.
I think it would take some serious refactoring to make this work with the raw data, so I don't have plans for that currently.
Ok thanks!
So right now I can convert the content state from the editor into html using the module below
We're looking to take the output of
convertFromRaw(contentState)
which is saved into our database and then to turn this into html on the backend so we can send it as the body of an email.Have you got any plans for
rawToHTML(rawContent)
?