-
|
I'm building and HTML editor with Lexical (input is HTML, output is HTML). I see that Lexical wraps all text nodes with As far as I understand, the way to accomplish this is to write a custom I've created a minimal repro here: https://codesandbox.io/p/sandbox/musing-lewin-j59szd?file=%2Fsrc%2Fnodes%2FCustomTextNode.js%3A18%2C1-19%2C1 Any idea why the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I'm not sure what was wrong, but when I copy/pasted |
Beta Was this translation helpful? Give feedback.
I'm not sure what was wrong, but when I copy/pasted
ExtendedTextNodefrom these docs: https://lexical.dev/docs/concepts/serialization#handling-extended-html-styling it started to work.