Only portion of a hyperlink's URL is updated when selecting part of the text of a hyperlink #17606
Open
Description
📝 Provide detailed reproduction steps (if any)
- Create a hyperlink that spans multiple words.
- Select a portion of the hyperlink text leaving part of the hyperlink on the left and right unselected.
- 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.