The Dreamweaver JavaScript API > Selection functions > dom.source.wrapSelection() |
Availability
Dreamweaver 4.0
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 that has just been inserted. 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
startTag is the text to insert at the beginning of the selection. |
|
endTag is the text to insert at the end of the selection. |
Returns
Nothing.