<menu> Configuration Element

This element contains settings for a specific menu (eg. View, Edit). These settings appear as a list of commands which appear on the menu.

Configuration Element Tree Structure

<editLive>
     ...
     <menuBar>
          <menu>
               <!--menu configuration settings-->
          </menu>
     </menuBar>
     ...
</editLive>

Required Attributes

name

This attribute specifies the name of the menu (eg. Edit, View).

Child Elements

<menuItem>

This element contains information for an item on the menu (eg. Cut, Undo, Table Properties).

<designerMenuItem>

This element specifies an item to include within a menu in the Visual Designer.

<menuItemGroup>

This element contains information for a grouping on the menu. The commands added by this element can only be added and removed from the menu as a group.

A grouping is a set of two or more items which are related and their selection is mutually exclusive within EditLive! for XML. For example, the Source View and Design View commands exist in a menuItemGroup.

<menuSeparator>

This element informs EditLive! for XML that it should include a horizontal line, or menu separator, within the menu.

<customMenuItem>

This element specifies the properties for a developer defined custom menu item for use within Ephox EditLive! for XML.

<submenu>

This element contains information for a submenu item which may be placed within a menu. The Font, Font Size and Style submenus are an example of this.

Example

The following example demonstrates how to create a menu called Edit.

<editLive>
    ...
    <menuBar>
        <menu name="Edit">
            ...
        </menu>
    </menuBar>
    ...
</editLive> 

Remarks

The <menu> element can appear multiple times within the <menuBar> element.