var CittaCommand=function(){
//create our own command, we dont want to use the FCKDialogCommand because it uses the default fck layout and not our own
};
CittaCommand.prototype.Execute=function(){
}
CittaCommand.GetState=function() {
return FCK_TRISTATE_OFF; //we dont want the button to be toggled
}
CittaCommand.Execute=function() {
FCK.InsertHtml('{citta}');
}
FCKCommands.RegisterCommand('Citta', CittaCommand ); //otherwise our command will not be found
var oCittas = new FCKToolbarButton('Citta', FCKLang.Citta, null, FCK_TOOLBARITEM_ONLYTEXT);
FCK_TOOLBARITEM_ONLYTEXT = 1;
oCittas.style = FCK_TOOLBARITEM_ONLYTEXT;
FCKToolbarItems.RegisterItem( 'Citta', oCittas );
Re: Plugin button, without image
var oCittas = new FCKToolbarButton('Citta', FCKLang.Citta, null, FCK_TOOLBARITEM_ONLYTEXT);
instead of
var oCittas = new FCKToolbarButton('Citta', 'Citta');
Now I've to find how to force a language.
I've seen in custom_config.js that I can set the default language and set to false the autodetect, but I'm wondering if i can do it in php.
thank you
Re: Plugin button, without image
Re: Plugin button, without image
Re: Plugin button, without image
var CittaCommand=function(){ //create our own command, we dont want to use the FCKDialogCommand because it uses the default fck layout and not our own }; CittaCommand.prototype.Execute=function(){ } CittaCommand.GetState=function() { return FCK_TRISTATE_OFF; //we dont want the button to be toggled } CittaCommand.Execute=function() { FCK.InsertHtml('{citta}'); } FCKCommands.RegisterCommand('Citta', CittaCommand ); //otherwise our command will not be found var oCittas = new FCKToolbarButton('Citta', FCKLang.Citta, null, FCK_TOOLBARITEM_ONLYTEXT); FCK_TOOLBARITEM_ONLYTEXT = 1; oCittas.style = FCK_TOOLBARITEM_ONLYTEXT; FCKToolbarItems.RegisterItem( 'Citta', oCittas );