Enablers
449
dreamweaver.canUndo()
Availability
Dreamweaver 3.
Description
Checks whether Dreamweaver can perform an Undo operation in the current context.
Arguments
None.
Returns
A Boolean value that indicates whether any operations can be undone.
dreamweaver.cssRuleTracker.canEditSelectedRule()
Availability
Dreamweaver MX 2004.
Description
Checks whether the Property Grid editor can be applied to the selected rule. Because the Property
Grid can display rules in locked files, a return value of
true
does not guarantee that the rule can
be modified.
Arguments
None.
Returns
A Boolean value:
true
if the Property Grid editor can be applied to the selected rule;
false
otherwise.
Example
The following code checks whether the enabler function has been set to the value
true
before
allowing edits to the selected rule:
if(dw.cssRuleTracker.canEditSelectedRule()){
dw.cssRuleTracker.editSelectedRule();
}
dreamweaver.cssStylePalette.canApplySelectedStyle()
Availability
Dreamweaver MX.
Description
Checks the current active document to see whether the selected style can be applied.
Arguments
None.
000_DW_API_Print.book Page 449 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...