Adobe 38040334 - Dreamweaver CS3 User Manual page 145

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

The name of the application in which the menu command is available. Not currently used.
app
The keyboard shortcut for the command, if any. Use the following strings to specify modifier keys:
key
specifies the Control key (Windows) or Command key (Macintosh).
Cmd
and
interchangeably specify the Alt key (Windows) or Option key (Macintosh).
Alt
Opt
specifies the Shift key on both platforms.
Shift
specifies the Control key on both platforms.
Ctrl
• A Plus (+) sign separates modifier keys if a given shortcut uses more than one modifier. For example,
in the
Cmd+Opt+5
key
(Windows) or Command+Option+5 (Macintosh).
• Special keys are specified by name:
. Modifier keys can also be applied to special keys.
Space
Indicates on which platform the item appears. Valid values are
platform
meaning Macintosh. If you don't specify the
If you want a menu command to behave differently on different platforms, supply two menu commands with the
same name (but different IDs): one with
Provides JavaScript code (usually a JavaScript function call) that determines whether the menu
enabled
command is currently enabled. If the function returns the value
default value is
, but it's best to always specify a value for clarity even if the value is
"true"
Provides arguments for Dreamweaver to pass to the code in the JavaScript file that you specify in the
arguments
attribute. Enclose arguments in single quotation marks ('), inside the double quotation marks (") used to
file
delimit an attribute's value.
Specifies a JavaScript expression that's executed when the user selects this item from the menu. For
command
complex JavaScript code, use a JavaScript file (specified in the
or
for each menu command.
file
command
The name of an HTML file containing JavaScript that controls the menu command. Specify a path to the
file
file relative to the Configuration folder. (For example, the Help > Welcome menu command specifies
file="Commands/Welcome.htm"
You must specify either
file
using the History panel, see Dreamweaver Help. For information on writing your own JavaScript commands, see
"Commands" on page 126.
A JavaScript expression that indicates whether the menu command has a check mark next to it in the
checked
menu; if the expression evaluates as true, the item appears with a check mark.
If present, indicates that a menu command is to be determined dynamically, by an HTML file; the file
dynamic
contains JavaScript code to set the text and state of the menu command. If you specify a tag as
also specify a
attribute.
file
Indicates whether to synchronize the Design view and the Code view before executing the code
isdomrequired
for this menu command. Valid values are "
means that the changes to the file that this menu command makes do not use the Dreamweaver DOM. For infor-
mation about the DOM, see "The Dreamweaver Document Object Model" on page 90).
attribute means the menu command is executed when the user presses Control+Alt+5
through
F1
F12
platform
platform="win"
.) The
attribute overrides the
file
or
for each menu command. For information on creating a command file
command
" (the default) and "
true
,
,
,
,
,
PgDn
PgUp
Home
End
Ins
"win"
attribute, the menu command appears on both platforms.
and the other with
platform="mac"
, the menu command is dimmed. The
false
attribute) instead. You must specify either
file
,
command
enabled
". If you set this attribute to "
false
DREAMWEAVER CS3
Extending Dreamweaver
,
,
,
,
, and
Del
Tab
Esc
BkSp
, meaning Windows, or
"mac"
.
.
"true"
, and
attributes.
checked
, you must
dynamic
false
139
,
", it

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents