Media library failing if embedded in a drupal dialog

Created on 25 February 2021, about 4 years ago
Updated 27 March 2025, 15 days ago

When trying to open media library in a ckeditor field that is embedded within a dialog it get stuck loading

Enable ckeditor, enable media_library, add a block content in layout builder that has a ckeditor with media, the media image select will never load.

Seems like a JS is conflicting and sending an extra empty parameter, added a patch for the MediaLibraryState.php to filter empty values.

Validate/Trace if this comes from JS instead.

🐛 Bug report
Status

Closed: outdated

Version

11.0 🔥

Component

media system

Created by

🇨🇦Canada bonfil1 British Columbia

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • I could not recreate this issue in Drupal 11.x-dev, and it appears fixed using CKEditor 5. As the screenshot shows, in a custom content type I added a content block using layout builder and was able to upload an image to the text field. @mmenavas helped me with this issue at Drupalcon.

Production build 0.71.5 2024