Linked media disappears when dragging within CKEditor 5

Created on 25 June 2024, 10 months ago

Problem/Motivation

Media embedded within CKEditor 5 that has been linked cannot be moved within the editor by dragging. Copy and paste works fine.

Steps to reproduce

I've tested this on MacOS, Linux (Ubuntu), and Windows. The bug can be reproduced in Linux Chrome/Chromium, and Windows Chrome and Edge.

  1. Install Drupal with the standard profile.
  2. Enable Media and Media Library.
  3. Configure a text format to allow embedding media.
  4. Create content with an embedded image and link the image.
  5. Attempt to drag the media. For instance, move a linked media item from above a paragraph to below a paragraph.

The media item disappears and is replaced with an empty paragraph.

Proposed resolution

TBD.

Remaining tasks

TBD.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

TBD.

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
CKEditor 5 

Last updated 2 days ago

Created by

🇺🇸United States joshuami Portland, OR

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

Comments & Activities

  • Issue created by @joshuami
  • 🇺🇸United States joshuami Portland, OR

    Updating issue summary with a GIF to demo the issue.

  • 🇳🇿New Zealand quietone

    Fixes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies.

  • 🇺🇸United States thejimbirch Cape Cod, Massachusetts

    I ran into the same issue, with images vanishing when I dragged them to a new position in the editor.

    We weren't using linked images, but I had the same experience.

    Unchecking "Force pasting as plain text" just fixed it for me.

  • 🇺🇸United States joshuami Portland, OR

    It looks like this was fixed upstream at some point. I'm closing this as outdated as I can now drag and drop linked media on sites running 10.4.

Production build 0.71.5 2024