beautypg.com

Command="api_function, File="file_path, Tag="editor – Adobe Extending Dreamweaver CS4 User Manual

Page 116: Name="tooltip_text

background image

110

EXTENDING DREAMWEAVER CS4

Insert bar objects

command="API_function"

Description
Instead of referring Dreamweaver to an HTML file that contains the code to insert, you use this tag to specify a
command that Dreamweaver performs when the button is clicked.

Example

command="dw.showTagChooser()"

file="file_path"

Description
The

file

attribute specifies the path, relative to the Dreamweaver Configuration folder, of an object file. Dreamweaver

derives the tooltip for the object icon from the title of the object file, unless you specify the

name

attribute.

Example

file="Templates/Editable.htm"

tag="editor"

Description
This attribute tells Dreamweaver to invoke a Tag editor. In Code view, if the

tag

attribute is defined and the user clicks

the object, Dreamweaver invokes the Tag dialog box. In Code view, if you specify the

tag

and

command

attributes,

Dreamweaver invokes the Tag editor. In Design view, if

codeOnly="TRUE"

and you do not specify the

file

attribute,

Dreamweaver invokes Code and Design view, places focus in the code, and invokes the Tag editor.

Example

tag = "form"

name="tooltip_text"

Description
The

name

attribute specifies the tooltip that appears when the mouse pointer rests over the object. If you specify an

object file but do not specify the

name

attribute, Dreamweaver uses the name of the object file for the tooltip.

Note: If the name attribute is not provided, the object will not be available for grouping in the Favorites category on the
Insert bar UI.

Some Insert bar objects use a variation of the name attribute with prefix

MMString

. The MMString denotes a localized

string; these values are explained in

Localizing an extension

” on page 80.

Example

name = "cfoutput"

This manual is related to the following products: