draft-js-utils
draft-js-utils copied to clipboard
Export to HTML avoid nested span
Hi,
How can I avoid generating so many nested span tags, as one can see in the screenshot below:
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!
Maybe using inlineStyleFn instead of inlineStyles can help.