core/modules/media/js/plugins/drupalmedia/plugin.js | 4 ++--
.../media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/modules/media/js/plugins/drupalmedia/plugin.js b/core/modules/media/js/plugins/drupalmedia/plugin.js
index 4503be56eb..59a6c7e19d 100644
--- a/core/modules/media/js/plugins/drupalmedia/plugin.js
+++ b/core/modules/media/js/plugins/drupalmedia/plugin.js
@@ -89,7 +89,7 @@
editor.widgets.add('drupalmedia', {
// Minimum HTML which is required by this widget to work.
allowedContent: 'drupal-media[data-entity-type,data-entity-uuid,data-view-mode,data-align,data-caption,alt,title]',
- requiredContent: 'drupal-media[data-entity-type,data-entity-uuid,data-view-mode,data-caption]',
+ requiredContent: 'drupal-media[data-entity-type,data-entity-uuid]',
pathName: Drupal.t('Embedded media'),
@@ -103,7 +103,7 @@
upcast: function (element, data) {
var attributes = element.attributes;
- if (element.name !== 'drupal-media' || attributes['data-entity-type'] !== 'media' || attributes['data-entity-uuid'] === undefined || attributes['data-view-mode'] === undefined) {
+ if (element.name !== 'drupal-media' || attributes['data-entity-type'] !== 'media' || attributes['data-entity-uuid'] === undefined) {
return;
}
data.attributes = CKEDITOR.tools.copy(attributes);
diff --git a/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php b/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
index 4e4859c3f7..b81e636891 100644
--- a/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
+++ b/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
@@ -119,7 +119,7 @@ protected function setUp() {
'type' => 'blog',
'title' => 'Animals with strange names',
'body' => [
- 'value' => '',
+ 'value' => '',
'format' => 'test_format',
],
]);