Specifications
523
dom.getIsLibraryDocument()
Availability
Dreamweaver 3
Description
Determines whether the document is a library item
Arguments
None.
Returns
A Boolean value that indicates whether the document is an LBI file.
dom.getIsTemplateDocument()
Availability
Dreamweaver 3
Description
Determines whether the document is a template.
Arguments
None.
Returns
A Boolean value that indicates whether the document is a DWT file.
dom.getSelectedEditableRegion()
Availability
Dreamweaver 3
Description
If the selection or insertion point is inside an editable region, gets the position of the editable
region among all others in the body of the document.
Arguments
None.
Returns
An index into the array that “dom.getEditableRegionList()” on page 522 returns.
Example
The following code shows a dialog box with the contents of the selected editable region:
var theDOM = dw.getDocumentDOM();
var edRegs = theDOM.getEditableRegionList();
var selReg = theDOM.getSelectedEditableRegion();
alert(edRegs[selReg].innerHTML);