- Issue created by @rhovland
- 🇮🇳India sourav_paul Kolkata
I've tested it on D11.0.1 using the mentioned steps.
verified that the class "media-library-widget-modal" is attached.Sharing SS for reference:
- 🇺🇸United States rhovland Oregon
Hmm I wonder what is different then? I ran into this with a fresh install of Drupal 11 using the recommended composer template. I installed the umami profile. I also switched to Olivero in case there was something theme specific going on there.
On my actual production site which is on 10.3.x where the change had already taken place I don't experience this bug.
Did you test this on a new install or an existing site?
- 🇺🇸United States rhovland Oregon
I just tested it again. This time using the standard profile. Enabled the media module, added the embed media button to the basic text format.
Created a new basic page. Clicked the add media button. Class
media-library-widget-modal
is missing. - 🇺🇸United States keiserjb
I had found another issue talking about this. I had noticed on my Drupal 11 site that the media library modal was narrower than in Drupal 10. I then found the missing class.
- 🇺🇸United States keiserjb
Changing the line in ckeditor5.ckeditor5.yml certainly fixes the problem.
I also tried adding the class in MediaLibrary.php. This worked too.
// Making the title for editor drupal media embed translatable. $static_plugin_config['drupalMedia']['dialogSettings'] = [ 'title' => $this->t('Add or select media'), 'classes' => ['media-library-widget-modal'], ];
- 🇺🇸United States rhovland Oregon
Looks like this affects other users as well but only some of them.
- First commit to issue fork.
- 🇺🇸United States mckinzie25
This is a patch applying the change suggested in the original ticket. It restores the line
dialogClass: media-library-widget-modal
to ckeditor5.ckeditor5.yml.