Skip to content

Commit

Permalink
Merge pull request #1397 from Marc-pi/develop
Browse files Browse the repository at this point in the history
Ckeditor : update allowed classes and tag per discussion for Bootstrap & FA (partially covers #1320)
  • Loading branch information
taiwen committed Jan 6, 2016
2 parents 8c2e86e + 37fe9e2 commit 024032f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www/script/editor/ckeditor/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ CKEDITOR.editorConfig = function( config ) {
// Set the most common block elements.
config.format_tags = 'p;h1;h2;h3;pre';

// Allow all div classes (from theme)
config.extraAllowedContent = 'div(*)';
// Allow all div classes (from theme and for Boostrap and FontAwesome), allow empty <i>
config.extraAllowedContent = 'div(*)[*]{*}; a[!href]; span(*)[*]{*};table(*)[*]{*}; p(*)[*]{*}; li(*)[*]{*}; ul(*)[*]{*}; img(*)[*]{*}';
CKEDITOR.dtd.$removeEmpty.i = 0;
CKEDITOR.dtd.$removeEmpty.span = 0;

// Simplify the dialog windows.
config.removeDialogTabs = 'image:advanced;link:advanced';
Expand Down

0 comments on commit 024032f

Please sign in to comment.