- Issue created by @hummeldon
- last update
12 months ago 25,747 pass, 1,813 fail - last update
12 months ago 25,794 pass, 1,799 fail Was tough tracking this down, thanks for creating the issue and patch. Patch seems to work fine.
When editing an existing node that uses CKEditor 5, if the node previously had media that was displayed in a view mode with a numerical machine name, its view mode will be stripped away and it will revert to whatever the default view mode is. This does not occur with non-numerical view modes.
I was able to resolve by modifying web/core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Media.php
to ensure $view_mode
is a string and not an integer. This seems to resolve any underlying issues with CKEditor 5 PHP or JS. I've provided a patch file with the change.
(Per wim-leers in Slack) - Test coverage that fails, probably by extending \Drupal\Tests\ckeditor5\FunctionalJavascript\MediaTest::testViewMode()
Active
10.2 ✨
Last updated
Was tough tracking this down, thanks for creating the issue and patch. Patch seems to work fine.