Browse Source

Ckeditor - Allow to use "class" attribute inside divs and spans.

In order to set glossary class. See BT#8968
Julio Montoya 10 years ago
parent
commit
abb16fdf25
1 changed files with 5 additions and 0 deletions
  1. 5 0
      main/template/default/javascript/editor/ckeditor/config_js.tpl

+ 5 - 0
main/template/default/javascript/editor/ckeditor/config_js.tpl

@@ -1,3 +1,5 @@
+/* Ckeditor global configuration file */
+
 CKEDITOR.editorConfig = function( config ) {
     // Define changes to default configuration here.
     // For complete reference see:
@@ -17,5 +19,8 @@ CKEDITOR.editorConfig = function( config ) {
         '{{ _p.web_main ~ 'inc/lib/elfinder/templates.php'}}'
     ];
 
+    // Allows to use "class" attribute inside divs and spans.
+    config.allowedContent = true;
+
     config.customConfig = '{{ _p.web_main ~ 'inc/lib/javascript/ckeditor/config_js.php'}}';
 };