Adding objects to the Insert bar

You can add objects to the Insert bar. To make the changes appear in the Insert bar, you must either restart Adobe Dreamweaver or reload extensions. For information on reloading extensions, see .

To add a new object to the Insert bar, do the following:

  1. Define the specific string of code for the user's document by using HTML and, optionally, JavaScript.
  2. Identify or create an image (18 x 18 pixels) for the button in the Adobe Dreamweaver interface.

    If you create a larger image, Adobe Dreamweaver scales it to 18 x 18 pixels. If you do not create an image for your object, a default object icon with a question mark (?) appears on the Insert bar.

  3. Add the new files to the Configuration/Objects folder.
  4. Edit the insertbar.xml file to identify the location of these new files and set attributes (see ) for the button's appearance.
  5. Restart Adobe Dreamweaver or reload extensions.

    The new object appears on the Insert bar in the specified location.

    NOTE

    Although you can store Object files in separate folders, it's important that each filename be unique. The dom.insertObject() function, for example, looks for files anywhere within the Objects folder without regard to subfolders (for more information about the dom.insertObject() function, see the Adobe Dreamweaver API Reference). If a file called Button.htm exists in the Forms folder and another object file called Button.htm is in the MyObjects folder, Adobe Dreamweaver cannot distinguish between them. If two separate instances of Button.htm exist, dom.insertObject() displays two objects called Button, and the user might not recognize any difference.