lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Question: Is it possible for TextNode to not wrap raw text with <span> ?

Open dchhetri opened this issue 1 year ago • 6 comments

For example a html generated can look like

<p dir="ltr">
  <span style="white-space: pre-wrap;">Test </span>
  <b><strong style="white-space: pre-wrap;">Test</strong></b>
</p>

is it possible to remove the <span style="white-space: pre-wrap;"> all together and have it just be a raw HTML Text Node without the span wrapping?

dchhetri avatar Jan 03 '24 20:01 dchhetri