I need to find the RadEditor cursor position to place some text from another screen,i have tried to find the cursor position at the end of the each line but i can't able to find the cursor position between the words,please refer the images to analyse.
Thanks & Regards,
3 Answers, 1 is accepted
answered on 21 Jan 2014, 09:07 AM
You can use editor.pasteHtml function to insert any content to the cursor position.
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
I'm using pasteHtml to add some text and it's correctly added on cursor position on Chrome and FF but non on ie9 or ie10. On both IE test is put at the start of the text area. It's known issue ?
answered on 21 Aug 2014, 12:18 PM
Internet Explorer does not keep the selection when the RadEditor's contentArea loses its focus. To workaround this, you can get and store the RadEditor's range. You can get it on OnClientSelectionChange event and restore it before paste.