beautypg.com

Dom.source.wrapselection(), Dom.synchronizedocument() – Adobe Dreamweaver API Reference CS5 User Manual

Page 490

background image

485

DREAMWEAVER API REFERENCE

Code

Last updated 8/27/2013

Description
Moves the insertion point to the top of the current page or to the top of the previous page if the insertion point is
already at the top of a page. If content is already selected, this function extends the selection page by page.

Arguments
{nTimes}, {bShiftIsDown}

The nTimes argument, which is optional, is the number of pages that the insertion point must move. If nTimes is
omitted, the default is 1.

The bShiftIsDown argument, which is optional, is a Boolean value that indicates whether content is being selected.
If bShiftIsDown is

true

, the content is selected.

Returns
Nothing.

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.