Project

General

Profile

Bug #23005 » rtehtmlarea_bugfix_14876_typo3_4-4.patch

Administrator Admin, 2010-06-25 21:12

View differences:

typo3/sysext/rtehtmlarea/htmlarea/plugins/SelectFont/select-font.js (copie de travail)
*/
Ext.each(this.dropDownList, function (dropDown) {
var buttonId = dropDown[0];
var dropDownConfiguration = {
id: buttonId,
tooltip: this.localize(buttonId.toLowerCase()),
storeUrl: this.buttonsConfiguration[dropDown[2]].dataUrl,
action: 'onChange',
tpl: this.disablePCexamples ? '' : '<tpl for="."><div ext:qtip="{value}" style="' + dropDown[3] + '" class="x-combo-list-item">{text}</div></tpl>'
};
if (this.buttonsConfiguration[dropDown[2]]) {
if (this.editorConfiguration.buttons[dropDown[2]].width) {
dropDownConfiguration.width = parseInt(this.editorConfiguration.buttons[dropDown[2]].width, 10);
if (this.isButtonInToolbar(buttonId)) {
var dropDownConfiguration = {
id: buttonId,
tooltip: this.localize(buttonId.toLowerCase()),
storeUrl: this.buttonsConfiguration[dropDown[2]].dataUrl,
action: 'onChange',
tpl: this.disablePCexamples ? '' : '<tpl for="."><div ext:qtip="{value}" style="' + dropDown[3] + '" class="x-combo-list-item">{text}</div></tpl>'
};
if (this.buttonsConfiguration[dropDown[2]]) {
if (this.editorConfiguration.buttons[dropDown[2]].width) {
dropDownConfiguration.width = parseInt(this.editorConfiguration.buttons[dropDown[2]].width, 10);
}
if (this.editorConfiguration.buttons[dropDown[2]].listWidth) {
dropDownConfiguration.listWidth = parseInt(this.editorConfiguration.buttons[dropDown[2]].listWidth, 10);
}
if (this.editorConfiguration.buttons[dropDown[2]].maxHeight) {
dropDownConfiguration.maxHeight = parseInt(this.editorConfiguration.buttons[dropDown[2]].maxHeight, 10);
}
}
if (this.editorConfiguration.buttons[dropDown[2]].listWidth) {
dropDownConfiguration.listWidth = parseInt(this.editorConfiguration.buttons[dropDown[2]].listWidth, 10);
}
if (this.editorConfiguration.buttons[dropDown[2]].maxHeight) {
dropDownConfiguration.maxHeight = parseInt(this.editorConfiguration.buttons[dropDown[2]].maxHeight, 10);
}
this.registerDropDown(dropDownConfiguration);
}
this.registerDropDown(dropDownConfiguration);
return true;
}, this);
return true;
......
onGenerate: function () {
// Load the dropdowns
Ext.each(this.dropDownList, function (dropDown) {
this.getButton(dropDown[0]).getStore().load({
callback: function () { this.getButton(dropDown[0]).setValue('none'); },
scope: this
})
if (this.getButton(dropDown[0])) {
this.getButton(dropDown[0]).getStore().load({
callback: function () { this.getButton(dropDown[0]).setValue('none'); },
scope: this
})
}
}, this);
},
/*
(2-2/2)