MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 532

Dreamweaver api reference
Table of Contents

Advertisement

dom.source.getSelection()
Description
Gets the selection in the current document, which is expressed as character offsets into the
document's Code view.
Arguments
None.
Returns
A pair of integers that represent offsets from the beginning of the source document. The first
integer is the opening of the selection; the second is the closing of the selection. If the two
numbers are equal, the selection is an insertion point. If there is no selection in the source,
both numbers are -1.
dom.source.getLineFromOffset()
Availability
Dreamweaver MX.
Description
Takes an offset into the source document.
Arguments
None.
Returns
The associated line number, or -1 if the offset is negative or past the end of the file.
dom.source.getText()
Availability
Dreamweaver 4.
Description
Returns the text string in the source between the designated offsets.
Arguments
startOffset, endOffset
532
Code

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents