Adding this element to your configuration file will have no effect in the Swing SDK.
This element is used to define Javascript files to be used in conjunction with the modified EditLive! instance. Javascript files referenced through <script> elements will be added to the webpage invoking the EditLive!.
Plug-in Element Tree Structure
<plugin> ... <script ... /> </plugin>
Required Attributes
src
The URL specified location of the .js file used to instantiate the modified version of EditLive!.
If the URL specified is relative, this URL will be resolved depending on which load-time property is used to instantiate the plug-in:
AddPlugin - The relative URL will be resolved against the location of the XML plug-in file.
Example
The following javascript occurs in a webpage loaded from http://www.myserver.com/editlive/mywebpage.htmleditlive.addPlugin("myPlugins/myPlugin.xml");
myPlugin.xml contains the following <script> element:
<script src="myJavascript.js"/>
EditLive! would attempt to cache the following file and add it to mywebpage.html: http://www.myserver.com/editlive/myPlugins/myJavascript.js
AddPluginAsText - The relative URL will be resolved against the second parameter specified in this property.
Example
The following javascript occurs in a webpage loaded from http://www.myserver.com/editlive/editlive/mywebpage.htmleditlive.addPluginAsText("<?xml version=\"1.0\" ?><plugin><advancedapis jar=\"jsFiles/myJavascript.js\" class=\"com.ephox.footnotes.Footnotes\" /></plugin>", "http://www.myserver.com/editlive/");
EditLive! would attempt to cache the following file and add it to mywebpage.html: http://www.myserver.com/editlve/jsFiles/myJavascript.js
Remarks
For more information on using the plugin architecture to add additional Javascript files to the webpage loading EditLive!, see the Simple Plugin Tutorial.