This is a migrated thread and some comments may be shown as answers.

RadEditor: How to get/set caret position?

3 Answers 202 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Olexandr
Top achievements
Rank 1
Olexandr asked on 08 Feb 2011, 03:32 PM
Hello.

To develop some features in our application we need to get and set caret position (i.e. distance from the beginning of the text or smth like that). It was mentioned by Telerik team in this four-years-old thread that RadEditor did not provide API to get/set caret position.

The only thing we actually need to do is to restore the caret position in design mode after some parts of content are changed (i.e., global reformatting of some keywords). So we store caret position, then some chunks are replaced, then updated HTML is set, and then we set restore caret position.

We have managed to do that in IE using TextRange (such a hack), but it is a really time consuming challenge to get this work properly in all other major browsers.

Browser compatibility is the reason why we use Telerik components. So I hope something have moved further in this area during these four years.

Regards,
Olexandr Vynnychenko
IntraNote a/s

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 09 Feb 2011, 01:35 PM
Hi Olexandr,

I already answered to your other thread on the subject.

Greetings,
Dobromir
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Jeff
Top achievements
Rank 1
answered on 14 Mar 2017, 04:01 PM
Link is broken. 
0
Rumen
Telerik team
answered on 14 Mar 2017, 04:55 PM

Hi Jeff,

 

I've fixed the link and it works now properly.

 

Best regards,
Rumen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Olexandr
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Jeff
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or