
The Floating panel API 297
If you select a script marker in Design view for the current document and then select the
Script Editor menu item, it 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, it displays the
blanklayer panel that contains the text (no
script selected)
.
To add the menu item:
1. Open the menus.xml file in the Configuration/Menus folder.
2. locate the tag that begins <menuitem name="Tile _Vertically" and position the cursor
after the closing
/> of the tag.
3. On a new line, insert the following:
<menuitem name="Script Editor" enabled="true" ¬
command="dw.toggleFloater('scriptEditor')"¬
checked="dw.getFloaterVisibility('scriptEditor')" />
4.
Save the file.
The Floating panel API
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.
Kommentare zu diesen Handbüchern