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

2 posts, 0 answers
  1. Aditya
    Aditya avatar
    1 posts
    Member since:
    Jul 2012

    Posted 06 Sep 2012 Link to this post

    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
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5355 posts

    Posted 07 Sep 2012 Link to this post

    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.
Back to Top