This is a migrated thread and some comments may be shown as answers.

Function to get Word Count Value from bottom of Rad Editor

3 Answers 154 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Siddiqali
Top achievements
Rank 1
Siddiqali asked on 06 Jan 2012, 03:02 PM
Hello Group Members,
                                  I have rad editor,When I type words in rad editor it shows total number of words and characters at the bottom of Rad Editor. Can any one tell me which function should I use to  get the values of Word and Characters from Rad Editor.

3 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 09 Jan 2012, 04:23 PM
Hi,

You can use the code from the following KB article: Implementing custom Word / Character counter.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Siddiqali
Top achievements
Rank 1
answered on 10 Jan 2012, 08:21 AM
Thanks for your response ,It helped to solve the problem  I request you to go and view this link http://www.telerik.com/community/forums/sharepoint-2010/grid-editor-ajax-webparts/count-paragraph-of-rad-editor.aspx 
.Because I am getting reply from this site after 4 days  or after 1 week.Hope you view and help me
0
Rumen
Telerik team
answered on 11 Jan 2012, 02:51 PM
Hi,

You can count the paragraphs in the content area using the following code:

editor.get_document().body.getElementsByTagName("p").length

or

editor.get_document().getElementsByTagName("p").length


All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
WebParts for SharePoint
Asked by
Siddiqali
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Siddiqali
Top achievements
Rank 1
Share this question
or