Ticket #901: 901_2.patch
File 901_2.patch, 1.1 KB (added by , 13 years ago) |
---|
-
_source/plugins/stylescombo/plugin.js
14 14 var config = editor.config, 15 15 lang = editor.lang.stylesCombo, 16 16 styles = {}, 17 stylesList = []; 17 stylesList = [], 18 combo; 18 19 19 20 function loadStylesSet( callback ) 20 21 { … … 62 63 63 64 init : function() 64 65 { 65 varcombo = this;66 combo = this; 66 67 67 68 loadStylesSet( function() 68 69 { … … 180 181 181 182 if ( !counter[ CKEDITOR.STYLE_OBJECT ] ) 182 183 this.hideGroup( lang[ 'panelTitle' + String( CKEDITOR.STYLE_OBJECT ) ] ); 184 }, 185 186 // Force a reload of the data 187 reset: function() 188 { 189 if ( combo ) 190 { 191 delete combo._.panel; 192 delete combo._.list; 193 combo._.committed = 0; 194 combo._.items = {}; 195 combo._.state = CKEDITOR.TRISTATE_OFF; 196 } 197 stylesList = []; 198 loadStylesSet(); 183 199 } 184 200 }); 185 201