<shrtMenuItem> Element

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

Element Tree Structure

<editLiveForJava>
    <shortcutMenu>
        <shrtMenu>
            <shrtMenuItem>

<editLiveForJava>
     <shortcutMenu>
          <shrtMenu>
               <shrtMenuItem ... />
          </shrtMenu>
     </shortcutMenu>
</editLiveForJava>

Required Attributes

Attribute Description
name This attribute gives the name for the shortcut menu command.  It must be one of the following:
  • shrtCut - The Cut command.
  • shrtCopy - The Copy command.
  • shrtPaste - The Paste command.
  • shrtSelectAll - The Select All command.
  • shrtFind - The Find... command.
  • shrtInsRowCol - The Insert Row or Column... command.
  • shrtInsCell - The Insert Cell command.
  • shrtDelRow - The Delete Row command.
  • shrtDelCol - The Delete Column command.
  • shrtDelCell - The Delete Cell command.
  • shrtSplit - The Split Cell... command.
  • shrtMerge - The Merge Cells command.
  • shrtPropTable - The Table Properties... command.
  • shrtPropCell - The Cell Properties... command.
  • shrtPropRow - The Row Properties... command.
  • shrtPropCol - The Column Properties... command.
  • shrtPropImage - The Image Properties... command.
  • shrtPropList - The List Properties... command.
  • shrtHyperlink - The Hyperlink Properties... command.
  • shrtEditTag - The Edit Custom Tag... command.
  • shrtFontFace - The Font submenu.
  • shrtFontSize - The (font) Size submenu.
  • shrtStyle - The Style submenu.

Example

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

<editLiveForJava>
    ...
    <shortcutMenu>
        <shrtMenu>
            <shrtMenuItem name="shrtCut" />
            <shrtMenuItem name="shrtCopy" />
            <shrtMenuItem name="shrtPaste" />
            <shrtMenuItem name="shrtSelectAll" />
            <shrtMenuItem name="shrtPropImage" />
            <shrtMenuItem name="shrtPropTable" />
            <shrtMenuItem name="shrtPropCell" />
            <shrtMenuItem name="shrtHyperlink" />
            <shrtMenuItem name="shrtStyle" />
        </shrtMenu>
    </shortcutMenu>    
</editLiveForJava>

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=... />

See Also