Closed tjcouch-sil closed 4 weeks ago
Hmm... an ImmutableChapterNode
is a decorator node. In previous versions of Lexical, root nodes could have element nodes or decorator nodes as children. I can no longer find that statement in the documentation and the code seems to clearly state it only allows element nodes now. This will take a bit of refactoring to fix. I'm surprised Lexical doesn't complain sooner (like when we initially load the nodes).
Posted this question in the Lexical Discord https://discord.com/channels/953974421008293909/1265086313871314944
Created this issue in the Lexical repo https://github.com/facebook/lexical/issues/6451
Describe the bug When putting the cursor before the chapter number, an error occurs, then editing no longer functions properly.
To Reproduce Steps to reproduce the behavior:
Tested in the online platform editor preview in CodeSandbox.