Character counter with Editor?

1 Answer 65 Views
Editor
Shane
Top achievements
Rank 2
Iron
Iron
Iron
Shane asked on 03 May 2022, 01:34 AM

Is it possible to add the character counter or do some kind of character count with the React Editor?

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 03 May 2022, 05:37 AM

Hello Shane,

Thank you for contacting us.

You can use the onChange event to track the changes within the editor and get the length of the text or the html content (based on your exact requirement). I have prepared a small example demonstrating how to keep track of the length of the text and/or the html content in the Editor:

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Shane
Top achievements
Rank 2
Iron
Iron
Iron
commented on 03 May 2022, 01:29 PM

works great. thank you.
Tags
Editor
Asked by
Shane
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or