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
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