Index: typo3/sysext/rtehtmlarea/htmlarea/plugins/Language/language.js =================================================================== --- typo3/sysext/rtehtmlarea/htmlarea/plugins/Language/language.js (révision 10488) +++ typo3/sysext/rtehtmlarea/htmlarea/plugins/Language/language.js (copie de travail) @@ -147,11 +147,8 @@ } return true; }, this); - // Load the language dropdown - select.getStore().load({ - callback: function () { this.getButton('Language').setValue('none'); }, - scope: this - }); + // Monitor the combo's store being loaded + select.mon(select.getStore(), 'load', function () { this.updateValue(select); }, this); } }, /* Index: typo3/sysext/rtehtmlarea/htmlarea/plugins/SelectFont/select-font.js =================================================================== --- typo3/sysext/rtehtmlarea/htmlarea/plugins/SelectFont/select-font.js (révision 10488) +++ typo3/sysext/rtehtmlarea/htmlarea/plugins/SelectFont/select-font.js (copie de travail) @@ -124,15 +124,14 @@ * This funcion is invoked by the editor when it is being generated */ onGenerate: function () { - // Load the dropdowns + // Monitor the dropdowns stores being loaded Ext.each(this.dropDownList, function (dropDown) { - if (this.getButton(dropDown[0])) { - this.getButton(dropDown[0]).getStore().load({ - callback: function () { this.getButton(dropDown[0]).setValue('none'); }, - scope: this - }) + var select = this.getButton(dropDown[0]); + if (select) { + select.mon(select.getStore(), 'load', function () { select.setValue('none'); }); } }, this); + }, /* * This function gets called when some font style or font size was selected from the dropdown lists