diff --git a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php
index 5ab4961f7034e8436cc7b60e8dc085f7316a2028..9f40120534d558560ec7788c9ea14cfd8b7a1c03 100644
--- a/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php
+++ b/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php
@@ -116,6 +116,10 @@ public function settingsForm(array $form, array &$form_state, EditorEntity $edit
         'plugins' => $editor->settings['plugins'],
       ),
     ));
+    $config = $this->getJSSettings($fake_editor);
+    // Remove the ACF configuration that is generated based on filter settings,
+    // because otherwise we cannot retrieve per-feature metadata.
+    unset($config['allowedContent']);
     $form['hidden_ckeditor'] = array(
       '#markup' => '<div id="ckeditor-hidden" class="element-hidden"></div>',
       '#attached' => array(
@@ -123,7 +127,7 @@ public function settingsForm(array $form, array &$form_state, EditorEntity $edit
           array(
             'type' => 'setting',
             'data' => array('ckeditor' => array(
-              'hiddenCKEditorConfig' => $this->getJSSettings($fake_editor),
+              'hiddenCKEditorConfig' => $config,
             )),
           ),
         ),