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

Export to HTML avoid nested span

Open rpellerin opened this issue 7 years ago • 1 comments

Hi, How can I avoid generating so many nested span tags, as one can see in the screenshot below: image Ideally, I'd like to have one span with all the styling in its style attribute.

I tried options such as inlineStyleFn or blockStyleFn, unsuccessfully.

Thank you!

rpellerin avatar Feb 16 '18 16:02 rpellerin

Maybe using inlineStyleFn instead of inlineStyles can help.

alexander-zolotykh avatar Mar 12 '19 08:03 alexander-zolotykh