|
Creating a simple Commands extension
This simple extension adds an item to the Macromedia Dreamweaver MX Commands menu and allows you to convert selected text in your document to either uppercase or lowercase. When you click the menu item, it activates a three-button interface that lets you submit your choice.
You create this extension by performing the following steps:
- Writing the JavaScript code
- Creating the user interface
- Placing the files in the Commands folder
Note: This example is a modified version of the example in the Commands chapter of Extending Dreamweaver MX.
You can download completed versions of the files that you create in this exercise.
Download the Windows source files (4K)
Download the Macintosh source files (4K)
When the file decompresses, a folder named change_case is created on your system.
If you have trouble downloading or decompressing the files, see TechNote 13686.
 |
 |
Bob Berry
Bob Berry is the lead API writer on the Dreamweaver documentation team.
|
|
 |
23 June 2002 |
|
 |
Commands menu, Commands extension, Commands folder, Commands example, change case, simple extension, JavaScript code, canAcceptCommand(), commandButtons(), selected text, user interface, extension tutorial, reload extensions, tutorial |
|
 |
9047 |
 |
 |
|
|