gtgalone / react-quilljs

React Hook Wrapper for Quill, powerful rich text editor.
https://www.npmjs.com/package/react-quilljs
MIT License
247 stars 28 forks source link

Adding plugin: counter module failed to work properly #61

Closed SkyYap closed 1 year ago

SkyYap commented 1 year ago

In the readme section, I have used the given instruction and found out the default counterRef is showing 2. It failed to work when I type first word but when I type second word, the counterRef turns to 3.

Exp:

[ ] -> 2 words Hello -> 2 words Hello world -> 3 words Hello world, Quill -> 4 words

Is there any issue with the demo code?

gtgalone commented 1 year ago

Hello @SkyYap

I just got this example from https://quilljs.com/guides/building-a-custom-module/#counting-words

maybe you can create this issue to https://github.com/quilljs/quill