Ephox Home Page Ephox Home Page  
Search
Buy/Upgrade
 
 Developers
Developers Home
EditLive! for Java
EditLive! for Windows
System Requirements
Getting Started
Integration Samples
Articles
API Reference
EditLive! for XML
Discussion Forums

EditLiveMode Property

Indicates which mode EditLive! is running in (HTMLString, FTPStandard, FTPFileManager, FTPFileManagerReadOnly, ViewOnly).

Applies To

EditLive Object

Syntax

JavaScript object.setEditLiveMode( sEditLiveMode );
 
[ sEditLiveMode = ] object.getEditLiveMode();
 

Possible Values

sEditLiveMode Required.  String that specifies the mode EditLive is to be run in.
 
EditLiveMode Values
Description
"HTMLString" For working with HTML fragments.
"FTPStandard" For working with single files stored on a web server.
"FTPFileManager" For working with multiple files stored on a web server with full file management capabilities.
"FTPFileManagerReadOnly" For working with multiple files stored on a web server with limited file management capabilities.
"ViewOnly" For viewing files only.  All editing functionality is disabled.

This property is read/write.  This property must be defined.

Examples

JavaScript

The following example would set EditLive to run in HTMLString mode.

function EditLive1_onload() {
    editLive1.setEditLiveMode( 'HTMLString' );
}

The following example would show a message box with the current value of EditLiveMode.

function button1_onclick(){
    var sEditLiveMode = editLive1.getEditLiveMode();
    alert( sEditLiveMode );
}

Minimum Version

EditLive! 1.0 or greater.

ViewOnly available in EditLive! 1.2 or greater.

See Also

 

 

Copyright © 1999-2005 Ephox Corporation. All Rights Reserved. 'Ephox' is a registered trademark of Ephox Corporation.
Java and the Java Powered logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.