Issue #2028457 by Wim Leers: Fixed Configuring CKEditor's ACF broke CKEditor configuration -> filter setting syncing.

8.0.x
Dries 2013-06-26 21:41:31 -04:00
parent 3179dd42b8
commit da1234fb74
1 changed files with 5 additions and 1 deletions

View File

@ -116,6 +116,10 @@ class CKEditor extends EditorBase {
'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 @@ class CKEditor extends EditorBase {
array(
'type' => 'setting',
'data' => array('ckeditor' => array(
'hiddenCKEditorConfig' => $this->getJSSettings($fake_editor),
'hiddenCKEditorConfig' => $config,
)),
),
),