Last Updated: 21 Jun 2022 22:39 by ADMIN
Created on: 08 Mar 2018 11:09
Category: Editor
Type: Bug Report
Shift+Left modifies text selection inconsistently in RadEditor
1.       Visit the RadEditor demo at https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx (I used Google Chrome.)

2.       In the HTML view, replace the entire demo text with

This <strong>strange</strong> thing

3.       In the Design view, place the cursor at the very end of the line, and press Shift+Left repeatedly.

a.       At first it will highlight the final letter correctly.

b.      Then it will UNHIGHLIGHT the final letter!

c.       Then it will begin highlight more letters again starting from the letter BEFORE the final letter.

d.      Then, after highlighting the ā€œeā€ in strange, it will being UNHIGHLIGHTING starting from the righthand side of the selection!

e.      Then it will highlight left as far as the ā€œsā€.

f.        Then it will start UNHIGHLIGHTING from the right again!

g.       Then highlighting the space to the left

h.      Then UNHIGHLIGHTING the space to the left!

i.         Then highlighting to the left as far as the beginning of the line

j.        Then UNHIGHLIGHTING from the right side of the selection!

Pressing Shift+Left and Shift+Right should always modify only one end of the selection, and the other end should always remain where the selection was started. This is how Windows Notepad and virtually all other applications behave.
1 comment
Posted on: 21 Jun 2022 22:39
Thank you for reporting this problem!

Until the issue gets fixed, you can use the temporary solution below:

                var $T = Telerik.Web.UI;
                var $Editor = $T.Editor;

                $Editor.DefaultToolAdapter.prototype._registerEditorHandlers = function () {
                    var editor = this.get_editor();
            <telerik:RadEditor ID="Radeditor1" runat="server">
                <Content>some very long long long long long sentence</Content>