Specifications

472
Example
The following code inserts <b>130</b> into the current document:
var theDOM = dreamweaver.getDocumentDOM();
theDOM.insertText(’<b>130</b>’);
The results appear in the Document window, as shown in the following figure:
dom.newBlock()
Availability
Dreamweaver 3
Description
Creates a new block with the same tag and attributes as the block that contains the current
selection or creates a new paragraph if the cursor is outside of all blocks
Arguments
None.
Returns
Nothing.
Example
If the current selection is inside a center-aligned paragraph, a call to
dreamweaver.getDocumentDOM().newBlock() inserts <p align="center"> after the current
paragraph.
dom.notifyFlashObjectChanged()
Availability
Dreamweaver 4
Description
Informs Dreamweaver that the current Flash object file has changed. Dreamweaver updates the
Preview display, resizing it as necessary, and preserving the width-height ratio from the original
size. For example, Flash Text uses this feature to update the text in the Layout view as the user
changes its properties in the Command dialog box.
Arguments
None.
Returns
Nothing.