Hi I would like to extend the modal window system in FCK for logins and other messages in my project. The goal will be to have all the modal windows using the same css.
Are modal windows loaded in an iframe?
If not how are they loaded (I found the html in editor/dialog/)
What are the basic functions involved with creating a modal window as far as FCK is concerned?
Thanks.
-Payson
Are modal windows loaded in an iframe?
If not how are they loaded (I found the html in editor/dialog/)
What are the basic functions involved with creating a modal window as far as FCK is concerned?
Thanks.
-Payson
Re: modal methods
Look how Smiley plugin is registering. It uses the FCKDialogCommand. For example your plugin could be like:
FCKCommands.RegisterCommand('widget', new FCKDialogCommand('widget',"Wybierz widget",FCKConfig.PluginsPath + 'widget/widget.php',700,700) );
var owidget = new FCKToolbarButton('widget', 'widget');
owidget.IconPath = FCKConfig.PluginsPath + 'widget/widgetadd.png';
FCKToolbarItems.RegisterItem( 'widget', owidget);
and including file widget/widget.php must have the js files from typical plugin view ( for example Smiley.html ).