RadEditor: Client-side Clear Selection?

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    12 posts
    Member since:
    May 2011

    Posted 22 Aug 2011 Link to this post


    I was going through the online documentation as well as the static class library looking for a way to clear the Editor's selected area. Ideally, I would like to be able to clear the selected area during a Client-side event. Is this possible?

    Thanks in advance!

  2. Rumen
    Rumen avatar
    14031 posts

    Posted 23 Aug 2011 Link to this post

    Hello Andrew,

    You can try the browser's Unselect command identifier:

    var editor = $find("<%=RadEditor1.ClientID%>");
    editor.get_document().execCommand("Unselect", null, true);

    as well as the collapse selection method:


    Kind regards,
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top