A simple insert object example
159
To edit insertbar.xml:
1.
Find the following line of code near the beginning of the file:
<insertbar xmlns:MMString="http://www.macromedia.com/schemes/data/
string/">
The
insertbar
tag defines the beginning of all the Insert bar contents.
2.
After that line, add a new
category
tag for the Editorial category you want to create, giving
it unique ID, name, and folder attributes, and then add a closing
category
tag, as shown
in the following example:
<category id="DW_Insertbar_Editorial" name="Editorial"
folder="Editorial">
</category>
3.
Reload extensions. For information on reloading extensions, see
“Reloading extensions”
on page 104
.
The Editorial category appears on the Insert bar:
4.
Within the opening and closing
category
tags, add the pop-up menu by using the
menubutton
tag and the following attributes, including a unique ID.
<menubutton id="DW_Insertbar_Markup" name="markup"
image="Editorial\Strikethrough.gif" folder="Editorial">
For more information about attributes, see
“Insert bar definition tag attributes”
on page 144
.
5.
Add the objects for the new pop-up menu using the
button
tag, as follows:
<button id="DW_Editorial_Strikethrough"
image="Editorial\Strikethrough.gif"
file="Editorial\Strikethrough.htm"/>
Summary of Contents for DREAMWEAVER 8-EXTENDING DREAMWEAVER
Page 1: ...Extending Dreamweaver...
Page 8: ...8 Contents...
Page 14: ...14 Introduction...
Page 16: ......
Page 54: ...54 Customizing Dreamweaver...
Page 96: ...96 Customizing Code View...
Page 98: ......
Page 110: ...110 Extending Dreamweaver...
Page 138: ......
Page 166: ...166 Insert Bar Objects...
Page 180: ...180 Commands...
Page 248: ...248 Toolbars...
Page 260: ...260 Reports...
Page 278: ...278 Tag Libraries and Editors...
Page 288: ...288 Property Inspectors...
Page 378: ...378 Server Behaviors...
Page 398: ...398 Data Sources...
Page 432: ...432 Server Models...
Page 456: ...456 Data Translators...
Page 482: ......
Page 492: ...492 The Shared Folder...