ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

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

Open jbalinski opened this issue 1 year ago • 1 comments

📝 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.

jbalinski avatar Dec 06 '24 19:12 jbalinski

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Dec 09 '25 23:12 CKEditorBot