Unable to edit link on an image

Created on 4 September 2024, 3 months ago
Updated 5 September 2024, 3 months ago

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

  1. Configure a text format using CKEditor5
  2. Make sure Image and Link are in the active toolbar
  3. Edit the field in a node using that format
  4. Upload an image into that field
  5. Link image to an external site
  6. Save the node
  7. Edit the node again
  8. Click the image
  9. Click the link icon
  10. Click edit
  11. Update the link
  12. Click the checkmark to accept the change
  13. See that the change was not accepted

Proposed resolution

Remaining tasks

  1. Test to see if this problem remains on Drupal 11
  2. Test to see whether this problem occurs with media
  3. Test to see whether this problem occurs with internal links
  4. Fix the bug
🐛 Bug report
Status

Postponed: needs info

Version

10.3

Component
Editor 

Last updated about 18 hours ago

Created by

🇺🇸United States MegaKeegMan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @MegaKeegMan
  • 🇮🇳India zartab farooquee

    I followed the steps to reproduce the issue, but I was unable to replicate the problem. After editing the image link and saving the changes, the link updated correctly without reverting to the original. I tested this on both external and internal links, and everything is functioning as expected

  • Status changed to Postponed: needs info 3 months ago
  • Thanks for trying to reproduce. I'm tagging this for an update to the reproduction steps.

  • 🇺🇸United States MegaKeegMan

    I have not yet been able to identify what might be causing this. But I will try to reproduce on a fresh installation. Thanks for looking into it.

Production build 0.71.5 2024