Skip to content

Only portion of a hyperlink's URL is updated when selecting part of the text of a hyperlink #17606

Open
@jbalinski

Description

📝 Provide detailed reproduction steps (if any)

  1. Create a hyperlink that spans multiple words.
  2. Select a portion of the hyperlink text leaving part of the hyperlink on the left and right unselected.
  3. Edit the hyperlink.

✔️ Expected result

Editing the URL by selecting any part of a hyperlink should update the URL for the whole hyperlink. This is not expected behavior when compared to other major editors such as Microsoft Word and Google Docs and I cannot think of a valid workflow where a user would actually want this behavior.

❌ Actual result

New hyperlinks are created. With the workflow above we now have 3 hyperlinks right next to one another. Two of them have the original URL and the one in the middle has the new URL.

❓ Possible solution

When a user edits the URL of a hyperlink and has selected only a portion of the hyperlink text, automatically extend the selection to the rest of the hyperlink.

📃 Other details

  • Browser: Edge 131, Chrome 131
  • OS: Windows 11
  • First affected CKEditor version: NA
  • Installed CKEditor plugins: Hyperlink -- see CKEditor 5 demo page

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

Metadata

Assignees

No one assigned

    Labels

    package:linksquad:coreIssue to be handled by the Core team.type:bugThis issue reports a buggy (incorrect) behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions