394
Chapter 18: Code
Returns
A Boolean value that indicates whether the entire selection has the specified character markup.
The function returns a value of
false
if only part of the selection has the specified markup.
dom.indent()
Availability
Dreamweaver 3.
Description
Indents the selection using
BLOCKQUOTE
tags. If the selection is a list item, this function indents
the selection by converting the selected item into a nested list. This nested list is of the same type
as the outer list and contains one item, the original selection.
Arguments
None.
Returns
Nothing.
dom.insertHTML()
Availability
Dreamweaver 3.
Description
Inserts HTML content into the document at the current insertion point.
Arguments
contentToInsert
,
{bReplaceCurrentSelection}
•
The
contentToInsert
argument is the content you want to insert.
•
The
bReplaceCurrentSelection
argument, which is optional, is a Boolean value that
indicates whether the content should replace the current selection. If the
bReplaceCurrentSelection
argument is a value of
true
, the content replaces the current
selection. If the value is
false
, the content is inserted after the current selection.
Returns
Nothing.
Example
The following code inserts the HTML string
<b>130</b>
into the current document:
var theDOM = dw.getDocumentDOM();
theDOM.insertHTML('<b>130</b>');
000_DW_API_Print.book Page 394 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...