-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Cleanup ArtificialNode__DO_NOT_USE #5966
Comments
Hi @potatowagon, when upgrading to Lexical to
|
@jaapvanblaaderen #6107 should fix the warnings |
#6048 another fix |
I still get errors ArtificialNode__DO_NOT_USE should implement "exportJSON" method to ensure JSON and default HTML serialization works as expected
ArtificialNode__DO_NOT_USE should implement "importJSON" method to ensure JSON and default HTML serialization works as expected
ArtificialNode__DO_NOT_USE must implement static "clone" method Is that because I use custom plugins? |
@MrPand-21 For npm version last build was 2-weeks ago, fix was posted 4-days ago. |
This should have been fixed with 0.16.0. Closing |
A followup task to #5857
During html pasting, ArtificialNode is a temp wrapper node to group nodes within block elements that should be separated by a linebreak (
). It is currently represented by a class extending ElementNode to be compatible with the typings in packages/lexical-html/src/index.ts.
A cleaner soln would be to not have ArtificialNode extend ElementNode so that it would not be confused as a LexicalNode. ArtificialNode is only used in the pasting logic and ideally should not need to be initialised in the Editor.
The text was updated successfully, but these errors were encountered: