<shrtMenuItem> Configuration Element

This element defines command items for the shortcut menu within Ephox EditLive! for XML.

Configuration Element Tree Structure

<editLive>
     ...
     <shortcutMenu>
          <shrtMenu>
               <shrtMenuItem ... />
          </shrtMenu>
     </shortcutMenu>
     ...
</editLive>

Required Attributes

name

This attribute gives the name for the menu item, the name must be from the Menu and Toolbar Button Items command collection.

EditLive! for XML also has many XML specific menu and toolbar button items. A list of these is provided in the EditLive! for XML Specific Menu and Toolbar Button Items article.

Example

The following example configures the Shortcut Menu of EditLive! for XML so that it contains the Cut, Copy, Paste, Select All, Image Properties..., Table Properties..., Cell Properties and Hyperlink Properties... commands.

<editLive>
    ...
    <shortcutMenu>
        <shrtMenu>
            <shrtMenuItem name="Cut" />
            <shrtMenuItem name="Copy" />
            <shrtMenuItem name="Paste" />
            <shrtMenuItem name="SelectAll" />
            <shrtMenuItem name="PropImage" />
            <shrtMenuItem name="PropTable" />
            <shrtMenuItem name="PropCell" />
            <shrtMenuItem name="Hyperlink" />
        </shrtMenu>
    </shortcutMenu>    
</editLive> 

Remarks

The <shrtMenuItem> element can appear multiple times within the <shrtMenu> element.

The <shrtMenuItem> 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:

<shrtMenuItem name=... />