Specifications
The Dreamweaver JavaScript API 407
Arguments
None.
Returns
The object to which the style should be applied, or NULL if the target is the current selection.
Example
Before applying a style, use dreamweaver.cssStylePalette.getSelectedTarget() to ensure
that if the user has changed the target, you have the one that is currently selected.
For example:
var currDOM = dreamweaver.getDocumentDOM();
currDOM.applyCSSStyle(dreamweaver.cssStylePalette.getSelectedTarget(), ¬
"codeRed");
dreamweaver.cssStylePalette.getStyles()
Availability
Dreamweaver 3
Description
Gets a list of all the class styles in the active document.
Arguments
None.
Returns
An array of strings that represent the names of all the class styles in the document.
Example
Assuming the CSS Styles panel setup that is shown in the following example, a call to
dreamweaver.cssStylePalette.getStyles() returns an array that contains these strings:
"BreadcrumbEnd", "change", "doctitle", "heading", and "highlight".