This method opens a specified Inline Editing section for editing, loading the editor applet in place of the DIV. The user can also click on the section to open it.
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.openEditableSection(divID);
Parameters
divID
The ID attribute for a HTML DIV to open. This DIV must be registered as an Inline Editing Section. For more information, see the addEditableSection Method.
Examples
The following code registers an Inline Editing section and provides a button to open it.
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="Open Section" onclick="editlivejava.openEditableSection('dashedDiv1');" />