Ticket #5497: plugin.patch
File plugin.patch, 1.1 KB (added by , 13 years ago) |
---|
-
plugin.js
39 39 } 40 40 41 41 // Sorts the Array, so the styles get grouped by type. 42 stylesList.sort( sortStyles ); 42 if (editor.config.stylesGroupStyles && editor.config.stylesGroupStyles == true) 43 stylesList.sort( sortStyles ); 43 44 } 44 45 45 46 callback && callback(); … … 79 80 80 81 if ( type != lastType ) 81 82 { 82 combo.startGroup( lang[ 'panelTitle' + String( type ) ] ); 83 if (editor.config.stylesGroupStyles && editor.config.stylesGroupStyles == true) 84 combo.startGroup( lang[ 'panelTitle' + String( type ) ] ); 83 85 lastType = type; 84 86 } 85 87 … … 201 203 typeB == CKEDITOR.STYLE_BLOCK ? 1 : 202 204 -1; 203 205 } 206 207 208 /** 209 * A boolean indicating if the loaded styles have to be grouped by type, which can be overwritten. 210 * @type Boolean 211 * @default true 212 * @example 213 */ 214 CKEDITOR.config.stylesGroupStyles = true; 204 215 })();