EditLive! 9 Documentation : setExpressEdit Method

 Select Edit works with TinyMCE 3.x only.

When creating an instance of EditLive!, the TinyMCE Javascript editor can be loaded by default instead of the full Applet.

For more information on using Tiny supported TinyMCE, see the Using TinyMCE article in the Developer Guide for this SDK.

Syntax

JavaScript
editliveInstance.setExpressEdit(express);

Parameters

express

A value indicating whether EditLive! should show TinyMCE by default. There are four accepted values:

  • true - TinyMCE will attempt to load first. If the platform and browser is not compatible with TinyMCE (see the TinyMCE Compatibility Chart), or if the content loaded into the editor contains Track Changes information or Commenting, EditLive! will attempt to load. If Java is not installed on the client's platform or EditLive! is not compatible with the platform and browser being used, a textarea will be displayed.
  • false - EditLive! will attempt to load. If Java is not installed on the client's platform or EditLive! is not compatible with the platform and browser being used, a textarea will be displayed.
  • "always" - TinyMCE will attempt to load first. If the platform and browser is not compatible with TinyMCE (see the TinyMCE Compatibility Chart), or if the content loaded into the editor contains Track Changes information or Commenting, a textarea area will be displayed.
  • "automatic" - If Java is installed and the platform is supported by EditLive!, EditLive! will load. If EditLive! is unable to load, TinyMCE will attempt to load. If the platform and browser is not compatible with TinyMCE (see the TinyMCE Compatibility Chart), or if the content loaded into the editor contains Track Changes information or Commenting, a textarea will be displayed.
  • "forceEditLive" - EditLive! will attempt to load, regardless of whether the platform is compatible.  If EditLive! is unable to load, an empty space will be displayed.

The default value is false.

Examples

The following code will load an instance of TinyMCE if the client does not have Java installed.

JavaScript
...
 
<script language="Javascript" src="../../redistributables/editlivejava/editlivejava.js"/>
<script language="JavaScript" src="../../redistributables/editlivejava/expressEdit/tinymce/jscripts/tiny_mce/tiny_mce.js"/>
 
...
 
<script language="Javascript">
       editlivejs = new EditLiveJava("ELApplet", 640, 400);
       editlivejs.setExpressEdit("automatic");
       editlivejs.show();
</script>
 
...

The following code will load an instance of TinyMCE, assuming the platform and browser being used is supported by TinyMCE.

...
 
<script language="Javascript" src="../../redistributables/editlivejava/editlivejava.js"/>
<script language="JavaScript" src="../../redistributables/editlivejava/expressEdit/tinymce/jscripts/tiny_mce/tiny_mce.js"/>
 
...
 
<script language="Javascript">
       editlivejs = new EditLiveJava("ELApplet", 640, 400);
       editlivejs.setExpressEdit("always");
       editlivejs.show();
</script>
 
...

See Also