Code view toolbar functions, Dom.getopenpathname() – Adobe Dreamweaver API Reference CS5 User Manual
Page 214
209
DREAMWEAVER API REFERENCE
Workspace
Last updated 8/27/2013
dreamweaver.htmlInspector.expandSelectedCodeFragments()
Availability
Dreamweaver 8.
Description
This function expands all collapsed code fragments within the current selection in the Code inspector. If the selection
is already expanded, this function does nothing.
Arguments
None.
Returns
Nothing.
Example
The following example expands all collapsed code in the current selection in the Code inspector:
dreamweaver.htmlInspector.expandSelectedCodeFragments();
Code view toolbar functions
Code view toolbar functions let you insert text, remove comments, show or hide special characters for white spaces in
Code view, and get the path of the current document.
Note: There are two different Coding toolbars: one for Code view and one for the Code inspector. Both are customized in
the file Configuration/Toolbars/toolbars.xml.
dom.getOpenPathName()
Availability
Dreamweaver 8.
Description
This function gets the absolute file path of the open document.
Arguments
None.
Returns
A string that is the absolute file path of the open document.
Example
The following example assigns the string that contains the path of the currently open document to the variable
fileName
:
var fileName = dom.getOpenPathName();