Я добавил новую кнопку в область rtehtml, и теперь я хочу, чтобы она была текстом, а не значком. Я могу установить текст с помощью следующей конфигурации кнопки в моем модуле JavaScript для моей новой кнопки, но размеры кнопки остаются на размерах значков и не переносят текст. Итак, как я могу это сделать?
configurePlugin: function(editor){
this.buttonsConfiguration = this.editorConfiguration.buttons;
this.placeholderConfiguration = this.editorConfiguration.placeholders;
/*
* Registering plugin "About" informations
*/
var pluginInformation = {
...
};
this.registerPluginInformation(pluginInformation);
/*
* Registering the buttons
*/
var buttonList = this.placeholderConfiguration;
if(buttonList !== undefined){
for (var i = 0; i < buttonList.length; ++i) {
var button = buttonList[i],
buttonId = button.name;
var buttonConfiguration = {
id : buttonId,
tooltip : button.label,
text : button.label,
action : 'onButtonPress',
hotKey : (button.hotkey ? button.hotkey : null),
dimensions : {
// not working for the button, it stays at 24x24 px
width: 600,
height: 250
}
};
this.registerButton(buttonConfiguration);
}
}
return true;
}