From 38a7a3f60b722fcb9f63aad4a6fe61cb7cafbb55 Mon Sep 17 00:00:00 2001 From: onli Date: Wed, 9 Oct 2019 18:10:21 +0200 Subject: [PATCH] Fix: Stop ckeditor from removing figures and figcaptions. Backported from master branch. Signed-off-by: Thomas Hochstein --- htmlarea/ckeditor_s9y_config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htmlarea/ckeditor_s9y_config.js b/htmlarea/ckeditor_s9y_config.js index 90fccc09..7024aaa2 100644 --- a/htmlarea/ckeditor_s9y_config.js +++ b/htmlarea/ckeditor_s9y_config.js @@ -65,7 +65,7 @@ CKEDITOR.editorConfig = function( config ) { - Allow for custom attributes/classes in code blocks */ // protect - config.extraAllowedContent = 'mediainsert[*]{*}(*);gallery[*]{*}(*);media[*]{*}(*);script[*]{*}(*);audio[*]{*}(*);div[*]{*}(*);span[*]{*}(*);img[height,width];pre[*](*);code;'; + config.extraAllowedContent = 'mediainsert[*]{*}(*);gallery[*]{*}(*);media[*]{*}(*);script[*]{*}(*);audio[*]{*}(*);div[*]{*}(*);span[*]{*}(*);img[height,width];pre[*](*);code;figure[*]{*}(*); figcaption[*]{*}(*);'; // Do not use auto paragraphs, added to these allowed tags (only!). Please regard that this was marked deprecated by CKE 4.4.5, but is a need for (our use of) extraAllowedContent - check this again by future versions! config.autoParagraph = false; // defaults(true)