Function to get Word Count Value from bottom of Rad Editor

4 posts, 1 answers
  1. Siddiqali
    Siddiqali avatar
    13 posts
    Member since:
    May 2011

    Posted 06 Jan 2012 Link to this post

    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.
  2. Answer
    Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 09 Jan 2012 Link to this post

    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

  3. Siddiqali
    Siddiqali avatar
    13 posts
    Member since:
    May 2011

    Posted 10 Jan 2012 Link to this post

    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
  4. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 11 Jan 2012 Link to this post

    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
Back to Top