Hi I was wondering if anyone can tell me how to write a plugin so that on clicking the menu button, an FCKDialog is shown and after the dialog is closed some javascript is executed (outside of the html file that is loaded in the FCKDialog - in the fckplugin.js file ideally).
Here is my plugin code.
A strange request perhaps.. grateful of any assistance.
P
Here is my plugin code.
var EditSubstitutionGroupsCommand=function(){}; EditSubstitutionGroupsCommand.prototype.Execute=function(){ } EditSubstitutionGroupsCommand.GetState=function() { return FCK_TRISTATE_OFF; //we dont want the button to be toggled } EditSubstitutionGroupsCommand.Execute=function() {} FCKCommands.RegisterCommand( 'EditSubstitutionGroups', new FCKDialogCommand('EditSubstitutionGroups',FCKLang.EditSubstitutionGroupsBtn, FCKPlugins.Items['RealiseIT'].Path+'editSubstitutionGroups.htm',400,500,null,null,true) ) ; var oEditSubstitutionGroupsItem = new FCKToolbarButton( 'EditSubstitutionGroups', FCKLang.EditSubstitutionGroups ) ; oEditSubstitutionGroupsItem.IconPath = FCKPlugins.Items['RealiseIT'].Path + 'images/substitutionGroups.gif' ; FCKToolbarItems.RegisterItem( 'EditSubstitutionGroups', oEditSubstitutionGroupsItem ) ;
A strange request perhaps.. grateful of any assistance.
P
Re: FCKDialogCommand AND custom code