I'm working on creating some plugins. I have a JavaScript file that has a common function for all of the plugins.
So I tried adding the script to the main code, so I do not have to manually put the function in each plugin.
So I include this in each plug-in:
FCKScriptLoader.AddScript(FCKConfig.PluginsPath + "util/trim.js");
HOWEVER, I get an JS Error saying "FCKScriptLoader is not defined"
Any Suggestions how I can use FCKScriptLoader or how to define it.
Thanks.
So I tried adding the script to the main code, so I do not have to manually put the function in each plugin.
So I include this in each plug-in:
FCKScriptLoader.AddScript(FCKConfig.PluginsPath + "util/trim.js");
HOWEVER, I get an JS Error saying "FCKScriptLoader is not defined"
Any Suggestions how I can use FCKScriptLoader or how to define it.
Thanks.