[Bug]: Pasting formatted content over the CharacterCount limit doesn't seem to work - content left blank #4820
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Which packages did you experience the bug in?
CharacterCount, react
What Tiptap version are you using?
2.1.15
What’s the bug you are facing?
When using
CharacterCount.configure({ limit: 240 })
and attempting to paste in more than 240 characters that is not unformatted text from the clipboard, the input remains empty.I can reproduce this in the "Usage" example on at the bottom of https://tiptap.dev/docs/editor/api/extensions/character-count#usage.
This page (https://tiptap.dev/blog/release-notes/new-character-count-extension) seems to indicate that this copy/paste behavior is a bug.
To Reproduce
What browser are you using?
Firefox
Code example
https://tiptap.dev/docs/editor/api/extensions/character-count#usage
What did you expect to happen?
If I configure CharacterCount to use a limit of 240 characters, and I paste in 250 characters, even if it's formatted, I would expect to see 240 of those 250 characters
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: