I've added a new Button to the rtehtmlarea and now I want to have it a text instead of an icon. I can set text via the following buttonConfiguration in my JavaScript Module for my new Button, but the button dimensions stay at the icons dimensions and do not wrap the text. So how can I do this?
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;
}