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

AllowReadOnlyAreas Property

Indicates user permissions with respect to whether they may edit content inside readonly areas or not.

Applies To

EditLive Object

Syntax

JavaScript object.setAllowReadOnlyAreas( bAllowReadOnlyAreas );
 
[ bAllowReadOnlyAreas = ] object.getAllowReadOnlyAreas();
 

Possible Values

bAllowReadOnlyAreas Boolean that specifies whether or not to detect the 'contenteditable' tag attribute. 

This property is read/write. The default value is true.

Examples

JavaScript

The following example would allow the user to edit the content of readonly areas.

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

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

function button1_onclick(){
    var bAllowReadOnlyAreas = editLive1.getAllowReadOnlyAreas();
    alert( bAllowReadOnlyAreas );
}

Minimum Version

EditLive! 2.1 SP4 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.