html-to-draftjs icon indicating copy to clipboard operation
html-to-draftjs copied to clipboard

How to return #text nodes as unstyled content block?

Open igor-sysoev opened this issue 3 years ago • 0 comments

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
}

igor-sysoev avatar Feb 03 '22 21:02 igor-sysoev