This is a migrated thread and some comments may be shown as answers.
getting html before or after cursor position
1 Answer 13 Views
This is a migrated thread and some comments may be shown as answers.
Vaibhav
Top achievements
Rank 1
Vaibhav asked on 10 Nov 2014, 11:24 AM
I am using radeditor in my project.
I want the text which is immediate after the cursor position or immediate before the cursor position.

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 12 Nov 2014, 03:41 PM
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.

 
Asked by
Vaibhav
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or