Fix: Stop ckeditor from removing figures and figcaptions
This commit is contained in:
parent
e8b8be0342
commit
b614ed5d07
@ -65,7 +65,7 @@ CKEDITOR.editorConfig = function( config ) {
|
||||
- Allow <pre[*attributes](*classes)> 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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user