#106694CKEditor cannot properly edit broken links
Description
At normal links, when marking it from its beginning to its end, a small div opens, where you can edit or delete it.
At broken links such as
<a data-rte-error="Page with ID XXX not found">linktext </a>
nothing happend, when marking it in the same manner. You have to delete the link including the linktext and type the link text again.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 9
-
Holger Drosdek changed Tags
edit "broken links"edit broken links <span data-processor="relativetime" data-value="2025-05-14T09:52:04+00:00" > 05/14/25, 09:52 </span> -
Garvin Hicking commented and changed subject
CKEditorCKEditor cannot properly edit broken links statusNewNeeds Feedback <span data-processor="relativetime" data-value="2025-05-15T15:45:17+00:00" > 05/15/25, 15:45 </span> -
Garvin Hicking changed Tags
edit broken links<span data-processor="relativetime" data-value="2025-05-15T15:45:30+00:00" > 05/15/25, 15:45 </span> -
Garvin Hicking changed description <span data-processor="relativetime" data-value="2025-05-15T15:45:48+00:00" > 05/15/25, 15:45 </span>
-
Holger Drosdek commented <span data-processor="relativetime" data-value="2025-05-15T16:04:20+00:00" > 05/15/25, 16:04 </span>
Hey, thanks a lot for looking after it. You are right, there’s no href attribute in this broken link. After adding href=”#” and saving it turns to href=“t3://page?uid=current”. So its not broken anymore. Adding a href to a non existing page will lead to
linktext
Now CKE shows the little edit menu, when marking the whole link text. That shows, that you are completely right. However, your proposal adding a simple href=”#” will not work, since the link turned to be verified. -
Garvin Hicking commented <span data-processor="relativetime" data-value="2025-05-15T16:09:39+00:00" > 05/15/25, 16:09 </span>
Thanks for the quick reply. I was afraid of this outcome (can’t check this throughly myself at this time).
We’ll somehow need to “trick” CKEditor then into seeing this tag as a proper link, which might be hard when CKEditor relies on the href.
Could you maybe (sorry for “abusing” you to try out things, hope that’s ok) see if it works when you add a “name=‘xxx’” attribute? Maybe that also triggers CKEditor link editing capabilities, without leading to “actual” links…?
-
Holger Drosdek commented <span data-processor="relativetime" data-value="2025-05-15T16:14:41+00:00" > 05/15/25, 16:14 </span>
No sorry, adding name=‘xxx’ to the source code in CKE is been deleted after saving.
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2025-08-15T15:45:11+00:00" > 08/15/25, 15:45 </span>
I think I can confirm that the culprit is the lack of the href attribute – even an online CKEditor sample seems to work like this:
https://ckeditor.com/docs/ckeditor5/latest/examples/builds-custom/full-featured-editor.html
-
Georg Ringer commented and changed status
Needs FeedbackClosed <span data-processor="relativetime" data-value="2026-10-02T12:01:35+00:00" > 10/02/26, 12:01 </span>I checked v14/main again and this can’t be reproduced here. If this still happens in v14, please open a new issue and provide information how to reproduce it! thanks!
Maybe this is due to the `` tag not having a `href` attribute. Could you try to go to the source editing mode, insert a `href` for testing and see if that allows you to edit it?
If so, we either need to ensure something like `href=”#”` remains, or we adjust the markup differently.