html-to-draftjs
html-to-draftjs copied to clipboard
How to return #text nodes as unstyled content block?
I have #text nodes in my html and they don't get displayed at all. I tried returning this in my custom chunk rendererer to no avail:
return {
type: "unstyled",
mutability: 'MUTABLE',
text: node.textContent
}