-
In the LexicalParagraphNode class implementation's importDOM method, only the HTMLElement 's style properties, The implementation of the exportDOM method only exports the and the LexicalTextNode also follows the above rule. The result is that when I export an HTML string with $generateHtmlFromNodes and process Lexical -> HTML, many styles are lost. My problem is, what's the reason did the community design this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Explanation is in the docs: https://lexical.dev/docs/concepts/serialization#handling-extended-html-styling |
Beta Was this translation helpful? Give feedback.
Explanation is in the docs:
https://lexical.dev/docs/concepts/serialization#handling-extended-html-styling