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
    Ianko avatar
    1899 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.


    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.

Back to Top