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

un-expected behaviour on IE, when select some text and lose focus from editor

1 Answer 16 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Aditya
Top achievements
Rank 1
Aditya asked on 06 Sep 2012, 01:34 PM
Hi,
Here, I am trying to execute radeditor command from another button control which is outside the the editor toolbox. So, I am able to execute the commands but the issue is, when we select some/all text in the editor and try to click button to apply some formatting the highlight/selection of text is clear. but when we do the same thing on Chrome, firefox, safari it works well.

To re-produce the issue, 

  1. Create a new page 
  2. Add two RadEditor controls 
  3. Run the application on IE
  4. Enter text into first editor and select some part of text
  5. Now, move to second editor. 
  6. See, the selection is lost.
  7. Now, Run application on Chrome and repeat 4 & 5.
  8. See, Selected text is still highlighted.

Or, you can test to select text in  http://mono.telerik.com/Editor/Examples/ToolbarMode/DefaultCS.aspx 

See the attached file for expected behaviour from IE. The snapshot is taken from Chrome.
Please look into the issue.

Regards,
Aditya Kumar

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 07 Sep 2012, 09:48 AM
Hello Aditya,

This is the way different browsers handle selection in different elements. You can reproduce the same behavior without any complex controls at all. I am attaching here a simple page and a video that show this difference between the browsers with just two editable iframes (which is what the RadEditor ultimately uses).

You can try the OnClientSelectionChange event to store the previous selection, of which I am attaching a simple example here as well.


Greetings,
Marin Bratanov
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
Aditya
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or