-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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]: why change isNodeEmpty behavior on a patch version? #5415
Comments
Also noticed that due to this change placeholder is now displayed unexpectedly. For example, if paragraph consists of just mentions or emoji nodes the whole paragraph is now considered to be empty. This is currently reproducible on templates.tiptap.dev. |
Sorry this was an oversight in the test cases, surprisingly it is not easy to know what is considered "empty" |
I understand that this is not a simple task. just changing a fundamental function in a patch version should be approached with more caution. |
Obviously I did not intend to change the behavior of it. Mistakes can happen. Please reconsider berating maintainers of free OSS software. |
We add our own components to the page, which tiptap now considers empty since version 2.5.7. How can i test the new version works correctly for our usecase? For example, we define a custom file component: https://tiptap.dev/docs/editor/extensions/custom-extensions/create-new#create-a-node |
I'm here to discuss a matter. Please accept my apologies if it appeared that I was criticizing you. However, the changes in question are not insignificant. |
This is now released with v2.5.9 |
Affected Packages
core
Version(s)
2.5.7
Bug Description
the helper function isNodeEmpty behavior is change on the 2.5.7.
this will cause the editor isEmpty return true when the editor is only contain a image content.
#5393
Browser Used
Chrome
Code Example URL
No response
Expected Behavior
isNodeEmpty behavior as usual on 2.5.x.
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: