1
|
/*
|
2
|
* FCKPlugin.js
|
3
|
* ------------
|
4
|
* This is a generic file which is needed for plugins that are developed
|
5
|
* for FCKEditor. With the below statements that toolbar is created and
|
6
|
* several options are being activated.
|
7
|
*
|
8
|
* See the online documentation for more information:
|
9
|
* http://wiki.fckeditor.net/
|
10
|
*/
|
11
|
|
12
|
// Register the related commands.
|
13
|
FCKCommands.RegisterCommand(
|
14
|
'WBModules',
|
15
|
new FCKDialogCommand(
|
16
|
'WBModules',
|
17
|
FCKLang["WBModulesDlgTitle"],
|
18
|
FCKPlugins.Items['WBModules'].Path + 'fck_wbmodules.php',
|
19
|
370,
|
20
|
370
|
21
|
)
|
22
|
);
|
23
|
|
24
|
// Create the "WBModules" toolbar button.
|
25
|
// FCKToolbarButton( commandName, label, tooltip, style, sourceView, contextSensitive )
|
26
|
var oWBModulesItem = new FCKToolbarButton( 'WBModules', FCKLang["WBModulesBtn"], null, null, false, true );
|
27
|
oWBModulesItem.IconPath = FCKConfig.PluginsPath + 'WBModules/wbmodules.gif';
|
28
|
|
29
|
// 'CMSContent' is the name that is used in the toolbar config.
|
30
|
FCKToolbarItems.RegisterItem( 'WBModules', oWBModulesItem );
|