This element defines command items for the element menu associated with the Document Navigator Bar within Ephox EditLive! for XML.
This element only applies when configuring EditLive! for XML.
<elementMenuItem>
<editLive>
...
<shortcutMenu>
<elementMenu>
<elementMenuItem ... />
</elementMenu>
</shortcutMenu>
...
</editLive>This attribute gives the name for the element menu command. It must be a valid menu or toolbar item (including submenus) from the EditLive! for XML Interface Command Collection.
The following example configures the Shortcut Menu of EditLive! for XML so that it contains the Insert Before, Insert After, Insert Into, Convert Element, Select, and Remove commands.
<editLive>
...
<shortcutMenu>
<elementMenu>
<elementMenuItem name="xmlInsertBefore"/>
<elementMenuItem name="xmlInsertAfter"/>
<elementMenuItem name="xmlInsertAtCurrent"/>
<elementMenuItem name="xmlConvert"/>
<elementMenuItem name="xmlSelect"/>
<shrtMenuSeparator/>
<elementMenuItem name="xmlRemove"/>
</elementMenu>
</shortcutMenu>
</editLive> It is recommended that element menu be configured so that it contains only items with functionality relating to XML elements such as Insert Before and Convert Element. For more information on EditLive! for XML specific commands see the section of the SDK on EditLive! for XML Specific Menu and Toolbar Button Items.
The <elementMenuItem> element can appear multiple times within the <elementMenu> element.
The <elementMenuItem> element must be a complete tag, it cannot contain a tag body. Therefore the tag must be closed in the same line. See the example below:
<elementMenuItem name=... />
Copyright 2001-2004 Ephox Corporation. All Rights Reserved.