DREAMWEAVER CS3
296
API Reference
var theDOM = dw.getDocumentDOM();
var edRegs = theDOM.getEditableRegionList();
var selReg = theDOM.getSelectedEditableRegion();
alert(edRegs[selReg].innerHTML);
dom.insertLibraryItem()
Availability
Dreamweaver 3.
Description
Inserts an instance of a library item into the document.
Arguments
libraryItemURL
• The
argument is the path to an LBI file, which is expressed as a file:// URL.
libraryItemURL
Returns
Nothing.
dom.markSelectionAsEditable()
Availability
Dreamweaver 3.
Description
Displays the New Editable Region dialog box. When the user clicks New Region, Dreamweaver marks the selection
as editable and doesn't change any text.
Arguments
None.
Returns
Nothing.
Enabler
See "dom.canMarkSelectionAsEditable()" on page 441.
dom.newEditableRegion()
Availability
Dreamweaver 3.
Description
Displays the New Editable Region dialog box. When the user clicks New Region, Dreamweaver inserts the name of
the region, surrounded by curly braces ({ }), into the document at the insertion point location.
Arguments
None.