draft-js icon indicating copy to clipboard operation
draft-js copied to clipboard

Miss style:color in html

Open Catlite91 opened this issue 10 years ago • 2 comments

While I use let html = "<div style=\"color:#A52A2A\">HELLO</div>" EditorState.createWithContent(ContentState.createFromBlockArray(convertFromHTML(html))) the color is disappeared. Is there something wrong with my code?

Catlite91 avatar Jun 01 '16 05:06 Catlite91

@Catlite91 - did you find a way to make convertFromHtml understand colors?

adamtal3 avatar Jun 29 '16 10:06 adamtal3

@adamtal3 I'v no idea this time,but #358 may help you.

Catlite91 avatar Jun 29 '16 10:06 Catlite91