Creating a menu item
It is not sufficient to save the Script Editor code in the Configuration/Floaters folder. You must
also call either the
dw.toggleFloater('scriptEditor')
The most obvious place from which to invoke the Script Editor is from the Window menu,
which is defined in the menus.xml file. The
the following example:
<menuitem name="Script Editor" enabled="true" ¬
command="dw.toggleFloater('scriptEditor')"¬
checked="dw.getFloaterVisibility('scriptEditor')" />
This
tag creates an entry for the Script Editor extension on the Window menu, as
menuitem
shown in the following figure:
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
234
Chapter 13: Floating Panels
dw.setFloaterVisibility('scriptEditor',true)
panel that contains the text (no script selected).
blanklayer
function to load the floating panel and make it visible.
tag for the Script Editor might look like
menuitem
function or the
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers