getting html before or after cursor position

2 posts, 0 answers
  1. Vaibhav
    Vaibhav avatar
    3 posts
    Member since:
    Oct 2014

    Posted 10 Nov 2014 Link to this post

    I am using radeditor in my project.
    I want the text which is immediate after the cursor position or immediate before the cursor position.
  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 12 Nov 2014 Link to this post

    Hi Vaibhav,

    The described functionality can be achieved only by using the getRange method and manipulating the native Range object of the browser.

    Eventually, based on the HTML in the editor you should be able to do that also with the getSelectedElement and getParentElement methods.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top