-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Labels
Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.The issue or pull reuqest is related to the open source packages of Tiptap.
Description
Affected Packages
character-count
Version(s)
Bug Description
When adding the character count extension to an existing project where the editor content already exceeds the maximum allowed length, the plugin cuts the text as expected. However, the text is cut from left to right (beginning to end), so the starting text disappears instead of trimming from the end as expected.
Browser Used
Chrome
Code Example URL
https://codesandbox.io/p/devbox/twilight-leaf-kfmcqv
Expected Behavior
Current:
…cutoff you could build one of the biggest social networks on that idea.
Expected:
Let‘s make sure people can’t write more than 100 characters. I bet you could build one …cutoff
Additional Context (Optional)
I think the issue needs to be fixed inside this if condition:
| if (initialContentSize > limit) { |
Dependency Updates
- Yes, I've updated all my dependencies.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.The issue or pull reuqest is related to the open source packages of Tiptap.