Replies: 1 comment
-
@nerdess Feels strange indeed, but that's how it's working. I've added a regex expression to replace it with empty string if that's all it contains when persisting editor to html. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried this in the playground https://playground.lexical.dev/ and also locally on my Lexical instance, same odd result.
When I remove all nodes and click on "exportDOM" in the tree view I get this:
I think this is really confusing. An empty editor should return
""
and not"<p><br></p>"
when running$generateHtmlFromNodes
.Or am I missing sth?
Beta Was this translation helpful? Give feedback.
All reactions