You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried creating a live character counter for quillEditor, but the delay is so significant especially when deleting the content.
Is there a way to fix this?
I tried creating a live character counter for quillEditor, but the delay is so significant especially when deleting the content.
Is there a way to fix this?
`const [count, setCount] = useState(0);
<QuillEditor
container={true}
ref={editorRef}
onHtmlChange={(data: HtmlChangeData) => {
const text = data.html.replace(/<[^>]+>/g, '');
setCount(text.length);
}}
/>
Character Count : {count} `
The text was updated successfully, but these errors were encountered: