User Guide
Code view functions 543
dom.source.wrapSelection()
Availability
Dreamweaver 4.
Description
Inserts the text of startTag before the current selection and the text of endTag after the
current selection. The function then selects the entire range between, and including, the
inserted tags. If the current selection was an insertion point, then the function places the
insertion point between the
startTag and endTag. (startTag and endTag don’t have to be
tags; they can be any arbitrary text.)
Arguments
startTag, endTag
■ The startTag argument is the text to insert at the beginning of the selection.
■ The endTag argument is the text to insert at the end of the selection.
Returns
Nothing.
dom.synchronizeDocument()
Availability
Dreamweaver 4.
Description
Synchronizes the Design and Code views.
Arguments
None.
Returns
Nothing.
000_DW_API_Print.book Page 543 Wednesday, July 20, 2005 11:58 AM