diff --cc core/modules/ckeditor/js/plugins/drupalimage/plugin.js index 80921c2,3686baf..0000000 --- a/core/modules/ckeditor/js/plugins/drupalimage/plugin.js +++ b/core/modules/ckeditor/js/plugins/drupalimage/plugin.js @@@ -42,12 -42,14 +43,14 @@@ 'data-entity-uuid': '' } }); - var allowedContentDefinition = { - element: 'img', - styles: {}, - attributes: { - '!data-entity-type': '', - '!data-entity-uuid': '' + var allowedContent = { + img: { + attributes: { - '!data-entity-type': true, - '!data-entity-uuid': true ++ '!data-entity-type': '', ++ '!data-entity-uuid': '' + }, + classes: {}, + styles: {} } }; var imgAttributes = widgetDefinition.allowedContent.img.attributes.split(/\s*,\s*/); diff --cc core/modules/ckeditor/js/plugins/drupallink/plugin.js index e9fb555,f015504..0000000 --- a/core/modules/ckeditor/js/plugins/drupallink/plugin.js +++ b/core/modules/ckeditor/js/plugins/drupallink/plugin.js @@@ -13,17 -13,16 +13,18 @@@ init: function (editor) { // Add the commands for link and unlink. editor.addCommand('drupallink', { - allowedContent: new CKEDITOR.style({ - element: 'a', - styles: {}, - attributes: { - '!href': '', - 'target': '' + allowedContent: { + a: { + attributes: { + '!href': true, - target: true - } ++ 'target': true ++ }, ++ styles: {} } - }), + }, requiredContent: new CKEDITOR.style({ element: 'a', + styles: {}, attributes: { href: '' }