I added a color picker to my toolbar, had it change the color and stored it as HTML.
import draftToHtml from 'draftjs-to-html';
const html = draftToHtml(draftState);
Now I want to edit the content again so I use:
import {stateFromHTML} from 'draft-js-import-html';
stateFromHTML(html);
The HTML I have is:
<p>Given <span style="color: #2a00ff;"><strong>Name</strong></span></p>
after I load the HTML back in I no longer have the color.