ConfigurationFile Property

Description

This property or the ConfigurationText property (but not both) must be set for an Ephox EditLive! for XML applet to run.

This property specifies the URL at which the XML configuration file for EditLive! for XML can be found. This file will customize the EditLive! for XML interface. You may like to look at the ConfigurationText property if you are considering dynamically generating XML configuration files, but otherwise it is probably simpler to use the ConfigurationFile property.

Syntax

JavaScript

setConfigurationFile(strFileURL);

Parameters

strFileURL

A string which is the URL for where the XML configuration file for this instance of EditLive! for XML can be requested from.

Examples

Example 16.11. ConfigurationFile Property Example Scripting

The following code would specify that EditLive! for XML is to load with the properties as specified by the file config.xml which can be found at http://someserver/xmlconfig/config.xml.

JavaScript

editlivejs.setConfigurationFile("http://somesever/xmlconfig/config.xml");

Remarks

Using the ConfigurationText property to configure EditLive! for XML results in a faster load time for the EditLive! for XML applet than is achieved through the use of the ConfigurationFile property.

The ConfigurationFile property is mutually exclusive with the ConfigurationText property. You should provide either a URL to a configuration file, or pass in the configuration text in a String format.

See Also