Open polyrainbow opened 2 weeks ago
When pressing "Enter" and the cursor is within an AutoLinkNode, the link is split into two paragraphs, but there is also an empty paragraph is inserted in between. This is also reproducible in the Playground.
Lexical version: 0.14.3
Link to code example: https://playground.lexical.dev/
https://github.com/facebook/lexical/assets/5648131/04f1b334-e41d-4f46-94d2-2e01cbbdd52a
There are 3 paragraphs, because an additional empty ParagraphBlock is inserted.
ParagraphBlock
There should be 2 paragraphs, one with text content http://example.co, and one with text content m.
http://example.co
m
When pressing "Enter" and the cursor is within an AutoLinkNode, the link is split into two paragraphs, but there is also an empty paragraph is inserted in between. This is also reproducible in the Playground.
Lexical version: 0.14.3
Steps To Reproduce
Link to code example: https://playground.lexical.dev/
https://github.com/facebook/lexical/assets/5648131/04f1b334-e41d-4f46-94d2-2e01cbbdd52a
The current behavior
There are 3 paragraphs, because an additional empty
ParagraphBlock
is inserted.The expected behavior
There should be 2 paragraphs, one with text content
http://example.co
, and one with text contentm
.