The Floating Panel Api Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

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

Advertisement

If you select a script marker in Design view for the current document and then select the Script Editor menu item,
Dreamweaver invokes the Script Editor floating panel and displays the JavaScript code that underlies the script
marker. If you select the menu item when a script marker has not been selected, Dreamweaver displays the
panel that contains the text
blanklayer
To add the menu item:
Open the menus.xml file in the Configuration/Menus folder.
1
2
locate the tag that begins
closing
of the tag.
/>
On a new line, insert the following:
3
<menuitem name="Script Editor" enabled="true" ¬
command="dw.toggleFloater('scriptEditor')"¬
checked="dw.getFloaterVisibility('scriptEditor')" />
Save the file.
4

The floating panel API functions

All the custom functions in the floating panel API are optional.
Some of the functions in this section operate only on the Windows operating system. The description of the function
indicates whether this is the case.
displayHelp()
Description
If this function is defined, a Help button appears below the OK and Cancel buttons in your dialog box. This function
is called when the user clicks the Help button.
Arguments
None.
Returns
Dreamweaver expects nothing.
Example
// the following instance of displayHelp() opens
// in a browser a file that explains how to use
// the extension.
function displayHelp(){
var myHelpFile = dw.getConfigurationPath() +
'/ExtensionsHelp/superDuperHelp.htm';
dw.browseDocument(myHelpFile);
}
(no script selected)
<menuitem name="Tile _Vertically"
.
and position the insertion point after the
DREAMWEAVER CS3
224
Extending Dreamweaver

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents