![MACROMEDIA DREAMWEAVER MX 2004-DREAMWEAVER API Скачать руководство пользователя страница 320](http://html1.mh-extra.com/html/macromedia/dreamweaver-mx-2004-dreamweaver-api/dreamweaver-mx-2004-dreamweaver-api_reference_3336554320.webp)
320
Chapter 15: Page Content
dom.getSelectedEditableRegion()
Availability
Dreamweaver 3.
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 319
.
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.
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.
000_DW_API_Print.book Page 320 Wednesday, August 20, 2003 9:14 AM
Содержание DREAMWEAVER MX 2004-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...