Specifications

Chapter 31406
dreamweaver.cssStylePalette.editStyleSheet()
Availability
Dreamweaver 3
Description
Opens the Edit Style Sheet dialog box.
Arguments
None.
Returns
Nothing.
Enabler
dreamweaver.cssStylePallette.canEditStyleSheet() on page 425
dreamweaver.cssStylePalette.getSelectedStyle()
Availability
Dreamweaver 3; fullSelector available in Dreamweaver MX
Description
Gets the name of the style that is currently selected in the CSS Styles panel.
Arguments
fullSelector
fullSelector
is a Boolean value that indicates whether the full selector or only the class should
be returned. If nothing is specified, only the class name returns. For instance,
p.class1 is a
selector that means the style is applied to any
p tag of class1, but it does not apply for instance to
a
div tag of class1. Without fullSelector, getSelectedStyle returns only the class name,
class1, for the selector. fullSelector tells the function to return p.class1 instead of class1.
Returns
When fullSelector is true, returns either the full selector, or an empty string when the
stylesheet node is selected.
When
fullSelector is false or omitted, a string that represents the class name of the selected
style. If the selected style does not have a class or a stylesheet node is selected, an empty string
returns.
Example
If the style red is selected, a call to dw.cssStylePalette.getSelectedStyle() returns "red".
dreamweaver.cssStylePalette.getSelectedTarget()
Availability
Dreamweaver 3
Description
Gets the selected element in the Apply To pop-up menu at the top of the CSS Styles panel.