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

createTextRange is not working if I delete and re-enter the text in editor

1 Answer 62 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Balaji
Top achievements
Rank 1
Balaji asked on 10 May 2012, 07:01 AM
Hi,

  I entered the text and the below code is working to get the range
    editor.getSelectedElement().createTextRange()
 If I delete the text in editor and enter some other text and the above code throw the error as below,
   Object doesn't support this property or method  

Please let me know why this error throwing at next time. Do we need to refresh the editor or something, if yes how to do?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 May 2012, 03:20 PM
Hi,

Could you please provide your code or if needed a simple project, sample content and steps to reproduce the problem?

Kind regards,
Rumen
the Telerik team
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 their blog feed now.
Tags
Editor
Asked by
Balaji
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or