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

Text selection bug in IE

2 Answers 43 Views
Editor
This is a migrated thread and some comments may be shown as answers.
InternalSystems
Top achievements
Rank 1
InternalSystems asked on 04 Aug 2016, 02:47 PM

I'm trying to get around a bug with the Kendo Editor control in Internet Explorer (tested in IE11).

JS Fiddle here:
https://jsfiddle.net/L5tvccd9/

 

Repro steps:
1. Click inside one word (e.g. "nine")
2. Select All (Ctrl+A, but it also happens with example select all from docs: http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#methods-selectRange )
3. Click inside a different word (e.g. "five")
4. Press return on the keyboard

 

Expected behaviour is to insert a break inside the second selected word, where the caret correctly appears (e.g. "five")

Actual behaviour is to insert a break inside the first selected word, where the caret was before select all (e.g. "nine")

This also breaks a lot of other features, like setting the style buttons to the correct state because it doesn't know where the caret is.

A second click in the same location, or using the keyboard cursor keys etc. correctly sets the caret position.

Also reproducible on the demo control:
http://demos.telerik.com/kendo-ui/editor/index

 

Is there any fix or workaround for this?

2 Answers, 1 is accepted

Sort by
0
InternalSystems
Top achievements
Rank 1
answered on 05 Aug 2016, 07:57 AM
This should have been posted in the "Kendo UI" forum if someone could move it and delete this reply.
0
Ianko
Telerik team
answered on 08 Aug 2016, 07:11 AM

Hello Gary,

 

Thank you for reporting this bug. I have logged it in our Guthub issues and you can monitor its progress from here: https://github.com/telerik/kendo-ui-core/issues/2046

 

Due to the complexity behind the selection utilities used in Kendo Editor I am unable to find a feasible workaround for this bug.

 

Regards,
Ianko
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
InternalSystems
Top achievements
Rank 1
Answers by
InternalSystems
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or