Hi,
We used to register alot of Dialogs in this way:
FCKCommands.RegisterCommand('EditTemplateFieldForDynamicLink', new FCKDialogCommand('EditTemplateFieldForDynamicLink', FCKLang.TemplateFieldDlgTitle, FCKPlugins.Items['templatefields'].Path + 'TemplateObjectsSelector.aspx?type=TemplateField&callback=DynamicLink.SelectorCallBack&Edit=1&' + contextParams, 340, 340));
And then we could just fetch and execute them like this:
FCKCommands.GetCommand('EditTemplateFieldForDynamicLink').Execute();
This allowed us to fire nested dialogs without much fuss.
How would i go about accessing registered commands by name?
We used to register alot of Dialogs in this way:
FCKCommands.RegisterCommand('EditTemplateFieldForDynamicLink', new FCKDialogCommand('EditTemplateFieldForDynamicLink', FCKLang.TemplateFieldDlgTitle, FCKPlugins.Items['templatefields'].Path + 'TemplateObjectsSelector.aspx?type=TemplateField&callback=DynamicLink.SelectorCallBack&Edit=1&' + contextParams, 340, 340));
And then we could just fetch and execute them like this:
FCKCommands.GetCommand('EditTemplateFieldForDynamicLink').Execute();
This allowed us to fire nested dialogs without much fuss.
How would i go about accessing registered commands by name?