Page tree
Skip to end of metadata
Go to start of metadata

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

<editLive>
<menuBar>
<menu>

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

This attribute specifies the name of the menu (e.g. Edit, View). EditLive! provides 9 default menu names, or developers can create their own. These default menu names are automatically internationalized to match the user's locale. To create an instance of one of the default menus, use one of the following strings as a value for name:

  • ephox_filemenu - The internationalized File menu.
  • ephox_editmenu - The internationalized Edit menu.
  • ephox_viewmenu - The internationalized View menu.
  • ephox_insertmenu - The internationalized Insert menu.
  • ephox_formatmenu - The internationalized Format menu.
  • ephox_toolsmenu - The internationalized Tools menu.
  • ephox_tablemenu - The internationalized Table menu.
  • ephox_formmenu - The internationalized Form menu.
  • ephox_trackchangesmenu - The internationalized Track Changes menu.
  • ephox_help - The internationalized Help menu.

You can explicitly set mnemonics and shortcuts for this element using the Mnemonic and Shortcut Attributes.

<menuItem>

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

<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 example, the Source View and Design View commands exist in a <menuItemGroup>.

<menuSeparator>

This element informs EditLive! 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 EditLive!.

<submenu>

This element contains information for a submenu item which may be placed within a menu. The Font, Font Size, and Style <submenu>s are examples of this.

The following example demonstrates how to create an instance of the default Edit menu.

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

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

  • No labels