388
Page Content
Description
If the selection or insertion point is inside an editable region, this function 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 the
dom.getEditbableRegionList()
function returns. For
more information, see
“dom.getEditableRegionList()” on page 386
.
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);
dom.insertLibraryItem()
Availability
Dreamweaver 3.
Description
Inserts an instance of a library item into the document.
Arguments
libraryItemURL
■
The
libraryItemURL
argument is the path to an LBI file, which is expressed as a file://
URL.
Returns
Nothing.
000_DW_API_Print.book Page 388 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...