Media Embed filter issues with Workspaces

Created on 9 September 2025, 22 days ago

Problem/Motivation

If you edit a Node that has Media embedded inside of a workspace, but the Media entity has been updated in the workspace, the Media Embed filter in CKEditor will display the Live file, while the Preview will display the Workspace revision of the file.

Steps to reproduce

1. Install fresh site with Workspaces UI and Media Library modules and dependencies.
2. Add the Drupal Media CKEditor plugin and Embed Media filter to a Text Format / Editor.
3. Add a page with a piece of Media in the Live workspace:

4. Add and activate a Workspace.
5. Edit and replace the Media asset in the workspace.
6. Preview the node, Media asset is correctly updated:

7. Edit the node, Media asset rendered is the Live asset, not the workspace asset:

It is worth noting that after editing and updating the Node in the workspace the next time you edit it does show the correctly updated Media asset.

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.2 🔥

Component

media system

Created by

🇦🇺Australia deciphered

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

Comments & Activities

Production build 0.71.5 2024