MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Spezifikationen Seite 176

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 504
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 175
176 Commands
Testing the extension
After you place the files in the Commands folder, you can test the extension.
To test the extension:
1. Restart Dreamweaver or reload extensions. For information on reloading extensions, see
“Reloading extensions” on page 104.
The Change Case entry should now appear on the Commands menu.
2. Type some text in a document.
3. Select the text.
4. Select Change Case from the Commands menu.
The text changes case.
The Commands API
The custom functions in the Commands API are not required.
canAcceptCommand()
Description
This function determines whether the command is appropriate for the current selection.
Arguments
None.
Returns
Dreamweaver expects a true value if the command is allowed; if the value is false,
Dreamweaver dims the command in the menu.
NOTE
Change Case is dimmed until the user selects text in the document.
NOTE
Do not define canAcceptCommand() unless it returns a value of false in at least one
case. If the function is not defined, the command is assumed to be appropriate. Making
this assumption saves time and improves performance.
Seitenansicht 175
1 2 ... 171 172 173 174 175 176 177 178 179 180 181 ... 503 504

Kommentare zu diesen Handbüchern

Keine Kommentare