diff --git a/js/plugins/drupalentity/plugin.js b/js/plugins/drupalentity/plugin.js index 6c76bf8..f089428 100644 --- a/js/plugins/drupalentity/plugin.js +++ b/js/plugins/drupalentity/plugin.js @@ -83,8 +83,8 @@ // Register the entity embed widget. editor.widgets.add('drupalentity', { // Minimum HTML which is required by this widget to work. - allowedContent: 'drupal-entity[*]', - requiredContent: 'drupal-entity[*]', + allowedContent: 'drupal-entity[data-entity-type,data-entity-uuid,data-entity-embed-display,data-entity-embed-settings]', + requiredContent: 'drupal-entity[data-entity-type,data-entity-uuid,data-entity-embed-display,data-entity-embed-settings]', // Simply recognize the element as our own. The inner markup if fetched // and inserted the init() callback, since it requires the actual DOM