Commit da1234fb authored by Dries's avatar Dries

Issue #2028457 by Wim Leers: Fixed Configuring CKEditor's ACF broke CKEditor...

Issue #2028457 by Wim Leers: Fixed Configuring CKEditor's ACF broke CKEditor configuration -> filter setting syncing.
parent 3179dd42
......@@ -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,
)),
),
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment