Best solution for getting the word count? #1771
Answered
by
sereneinserenade
shustudios
asked this question in
Questions & Help
-
Hi, I'm looking for an optimized way for getting the number of words in the editor. The problem is that text between nodes (multiple paragraphs) get "joined" when converting the editor's contents into plain text. Right now the only solution i see is to recursively loop through all the nodes to get the text. Anyone have a better idea? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
sereneinserenade
Aug 23, 2021
Replies: 1 comment 5 replies
-
I don't know if this is the best solution, but here's what I've tried. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
shustudios
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know if this is the best solution, but here's what I've tried.
https://codesandbox.io/s/reverent-babycat-g4yuk