Getting wrong textContent and characterCounts when i press enter #1280
Unanswered
csainath07
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to calculate characters and word count but whenever I press
Enter
my last word and new word are concatenate which causes the wrong word counts and every time I pressEnter
mycharacterCount
incremented by2
which should be1
(I think so)I'm referring to this
@tiptap Doc
(Note: you can check output in console)
Code Sand Box
Beta Was this translation helpful? Give feedback.
All reactions