Issue Bug Closed

#108387CKeditor: Clicking into a link forces full link selection, preventing partial selection

Philipp Kitzberger 12/03/25, 11:31 updated 03/31/26, 09:00

Description

Introduced by #108331

When clicking into a link element that contains multiple parts (e.g., text and icons), the editor automatically expands the selection to encompass the entire link. This prevents users from placing the cursor or selecting only a portion of the link content.

*Steps to Reproduce:*
1. Create a link in the RTE of (13.4.21 and 14) that contains multiple elements, e.g. text and an icon: <a href="#"><i class="fa fa-something"></i>Icon Text</a>
2. Click into the link to position the cursor or select only part of it (e.g., just the icon)
3. Observe the selection behavior

Expected Behavior: Only on opening the link popup the selection should be expanded to the full link text.

Actual Behavior: The selection is automatically expanded on clicking the link element, making it impossible to work with individual parts of the link content.

Reviews 3

History 37

  1. Gerrit Code Review pushed patch set 1 for main to change 91995 status New Under Review 12/03/25, 11:32

  2. Gerrit Code Review pushed patch set 2 for main to change 91995 12/03/25, 12:08

  3. Garvin Hicking changed Related to #108331 12/03/25, 12:08

  4. Gerrit Code Review pushed patch set 1 for 13.4 to change 92014 12/05/25, 15:38

  5. Gerrit Code Review pushed patch set 1 for 14.0 to change 92030 12/07/25, 00:18

  6. Philipp Kitzberger commented and changed status Under Review Resolved done 0 % 100 % 12/07/25, 00:20

    Applied in changeset commit:199a8f3eeee1071f6a1dc10c7790c71d3eb96043.

  7. Benni Mack changed status Resolved Closed 03/31/26, 09:00