EditLive! 9 Documentation : closeActiveEditableSection Method

Description

This method closes the active Inline Editing editable section - closing the applet and restoring the content to the Inline Editing DIV. If no sections are open, this method does nothing.

For more information, see the Using Inline Editing article in the Developer Guide for this SDK, or undertake the Using Inline Editing tutorial. 

Syntax

JavaScript
editliveInstance.closeActiveEditableSection();

Example

The following code adds an editable section to the page, and provides a button that closes the section.

JavaScript
<script language="Javascript" src="../../redistributables/editlivejava/editlivejava.js"/>
<div id="dashedDiv1" style="width: 600px; height: 400px; overflow: auto; border: 1px dotted gray; white-space:normal;">
</div>
<script language="Javascript">
       editlivejs = new EditLiveJava("ELApplet", "100%", "100%");
       editlivejs.setConfigurationFile("../../redistributables/editlivejava/sample_eljconfig.xml");
       editlivejs.addEditableSection("dashedDiv1");
</script>
 
<input type="button" value="Close Active Section" onclick="editlivejs.closeActiveEditableSection();" />

See Also