Dom.resetallelementviews(), Dom.setelementview() – Adobe Dreamweaver API Reference CS5 User Manual
Page 390

385
DREAMWEAVER API REFERENCE
Design
Last updated 8/27/2013
dom.resetAllElementViews()
Availability
Dreamweaver 8.
Description
This function resets the Element view of all elements in the document to the original view by removing all internally
generated CSS.
Arguments
{forceRefresh}
•
The forceRefresh argument, which is optional, is a Boolean value that specifies whether to refresh the rendering of
the entire document when there is no internal CSS to remove. A value of
true
causes the refresh. The default value
is
false
.
Returns
Nothing.
Example
The following example resets the Element view of all elements in the document without forcing a refresh of the
rendering:
var currentDOM = dw.getDocumentDOM();
currentDOM.resetAllElementViews(false);
dom.setElementView()
Availability
Dreamweaver 8.
Description
This function sets the Element view for the currently selected element in the document. If the currently selected
element is
"normal"
, the
setElementView()
function looks for the first ancestor of the currently selected element
that is
"full"
or
"hidden"
.
Arguments
view
•
The view argument, which is required, is a string that sets the currently selected element to
"full"
or
"hidden"
.
If the currently selected element, is
"normal"
, the
setElementView()
function looks for the currently selected
element’s first ancestor that is either
"full"
or
"hidden"
. For additional information, see
” on page 382. Possible values are:
•
"full"
— Removes the internal CSS that put the element in
"full"
view, so that the element returns to its
original state.
•
"hidden"
—If the currently selected element is in "hidden" view, Dreamweaver generates the CSS to cause all
content to be viewed and then applies the CSS as an internal design time style sheet.