how to get getRange on get_html?

2 posts, 0 answers
  1. Balaji
    Balaji avatar
    15 posts
    Member since:
    May 2012

    Posted 09 May 2012 Link to this post


       My input on RadEditor Control: ram ram ravan

       after some manipulation, i have modified the above text as "ram ram <FONT class=masked>ra</FONT>van".

       My requirement is the last word "van", if the user select "a" on van text, i want the index of a in the above text. Please help me how to get the index.

    I have used the below code to get the selected text range of pure text but not with html tags, how to get range and index with html tags.

        var Range = editor.getSelection().getRange();
            var index= - Range.move("character", -1000000);
  2. Rumen
    Rumen avatar
    14416 posts

    Posted 14 May 2012 Link to this post


    The following Wrox article could be helpful for your scenario:

    You can find more information in this help article:

    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