[Bug]: Character Count extension does not count characters correctly when there is mention #5777
Open
1 task done
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
Affected Packages
extension-character-count and extension-mention and suggestion
Version(s)
2.9.1
Bug Description
When using the editor with the extensions
@tiptap/extension-mention
,@tiptap/suggestion
and@tiptap/extension-character-count
the character count does not consider the length of the mention, only the @. The error can be reproduced in the mention extension doc itself https://tiptap.dev/docs/examples/advanced/mentions.Browser Used
Chrome
Code Example URL
https://tiptap.dev/docs/examples/advanced/mentions
Expected Behavior
The character count should be 56 not 44.
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: