betancourtl / draft-js-color-picker

Draft-js dynamic color picker
13 stars 2 forks source link

Color picker does not load HTML inline styles #2

Open kenljv opened 4 years ago

kenljv commented 4 years ago

This is a useful library but after picking colors and exporting it as HTML to db and reloading it back in the Editor, this doesn't get picked up and the colors are not preserved. Any solution to this? Thanks!

betancourtl commented 4 years ago

Sorry It's been a while since i've used this package. I think you need to export the HTML using something line draft-js-export-html

I'm doing something like that in here. https://github.com/webdeveloperpr/draft-js-custom-styles#api