You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[lexical-overflow] Make OverflowNode a proper inline element (revisit #6027 / #6535) #9454
OverflowNode (@lexical/overflow, used by the character limit plugin) wraps the overflowing part of a paragraph's text, but its isInline() returns false. It behaves like an inline element while reporting itself as a block, so code that reasons about inline vs block content has to special-case it.
Code that relies on a node's inline/block nature has to treat OverflowNode as an exception, for example a content-model normalization that lifts block elements out of paragraphs. With isInline() true, it would be an ordinary inline element and need no exemption.
Proposal
Add e2e and unit tests for caret placement around LineBreakNode with the character limit active, in plain text and in rich text (Shift+Return, typing at the end, backspace across the boundary).
I opened #9461 for this: OverflowNode is inline again, with the line break caret regression from #6535 fixed in the reconciler and in useCharacterLimit, plus tests for both.
Activity
[lexical][lexical-overflow][lexical-react] Bug Fix: Make OverflowNode…
Vedthakar commentedon Oct 25, 2026
I opened #9461 for this:
OverflowNodeis inline again, with the line break caret regression from #6535 fixed in the reconciler and inuseCharacterLimit, plus tests for both.— Ved Thakar