Specifications

550
Example
function applyFormatToSelectedTable(){
// get current selection
var selObj = dw.getDocumentDOM().getSelectedNode();
alternateRows(dwscripts.findDOMObject("presetNames").selectedIndex,
findTable());
// restore original selection, if it still exists; if not, just select the
// table.
var selArr;
if (dw.nodeExists(selObj))
selArr = dom.nodeToOffsets(selObj);
else
selArr = dom.nodeToOffsets(findTable());
dom.setSelection(selArr[0],selArr[1]);
}
}
dreamweaver.selectAll()
Availability
Dreamweaver 3
Description
Performs a Select All operation in the active Document window or the Site panel; or, on the
Macintosh, the edit field that has focus in a dialog box or floating panel.
Note: If the operation takes place in the active document, it usually selects all the content in the active document. In
some cases (for example, when the insertion point is inside a table), however, it selects only part of the active
document. To set the selection to the entire document, use
dom.setSelection().
Arguments
None.
Returns
Nothing.
Enabler
“dreamweaver.canSelectAll()” on page 424