Problem/Motivation
I am unable to update the link on an image in the CKEditor5 editor, using the edit link feature. I can go in and edit it, but after I click the checkmark, it changes back to the original link. I was not able to achieve the same result while linking to text, and I have not tested this with embedded media entities, only with embedded images (not media). I have also not yet tested this with internal links. I was only able to work around this by unlinking and adding a new link.
Steps to reproduce
- Configure a text format using CKEditor5
- Make sure Image and Link are in the active toolbar
- Edit the field in a node using that format
- Upload an image into that field
- Link image to an external site
- Save the node
- Edit the node again
- Click the image
- Click the link icon
- Click edit
- Update the link
- Click the checkmark to accept the change
- See that the change was not accepted
Proposed resolution
Remaining tasks
- Test to see if this problem remains on Drupal 11
- Test to see whether this problem occurs with media
- Test to see whether this problem occurs with internal links
- Fix the bug