-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Pasting a paragraph breaks trimTextContentFromAnchor
#3773
Comments
Can I work on this bug? |
That would be great! #3775 might be related. |
Damn, how are you guys able to notice such bugs? good job! |
Are there any volunteers who can assign me this issue? |
Feel free @pratik9333 |
@pratik9333 Is there any progress on this issue? |
I believe that this line cause the error
It looks like this method doesn't work correctly, I'm seeing some Nodes in NodeMap having __next field that points to non-existing nodes and that's where the error occurs: |
@777PolarFox777 Yes it is caused by The same error also appears when pressing enter after reaching the input limit. |
facing the same issue, interestingly I can't reproduce it in the playground though 🤷🏼 I'm pretty confused now, I actually don't understand how MaxLengthPlugin, old comment
Tried to replace it with So yea |
It's still not working for me. Lexical: 0.12.2 (assuming Lexical Playground uses the latest version) Screen.Recording.2023-09-14.at.22.26.17.mp4 |
I made a PR for this issue. Please check #5020 |
Lexical version: 0.7.6
Steps To Reproduce
text/html
in the clipboard is a<p>
tag. (You can copy the entire first paragraph at https://lexical.dev/docs/intro)trimTextContentFromAnchor
, called byMaxLengthPlugin
, crashes as it attempts to remove the root node.Note that, at https://lexical.dev/docs/intro:
The text was updated successfully, but these errors were encountered: