Closed
Description
Lexical version: 0.16.0
Steps To Reproduce
In the playground, start with an empty editor and then insert a horizontal rule.
root
├ (49) paragraph
├ (50) horizontalrule
└ (51) paragraph
So then it seems DecoratorNode
can be a top level element (as expected), however the invariant in getTopLevelElement
disallows this:
lexical/packages/lexical/src/LexicalNode.ts
Lines 351 to 365 in fcf1ae6
In the past it seems this was allowed (#2741), did this change on purpose?
Metadata
Metadata
Assignees
Labels
No labels
Activity