<menuSeparator> Element

This element places a horizontal separating line between commands within a Ephox EditLive! for Java menu bar menu.  This line will appear between the commands defined by the <menuItem> elements immediately before and after the <menuSeparator> element.

Note:  This element has no attributes or child elements.

Element Tree Structure

<editLiveForJava>
    <menuBar>
        <menu>
            <menuSeparator>

<editLiveForJava>
     ...
     <menuBar>
          <menu>
               <menuSeparator/>
          </menu>
     </menuBar>
     ...
</editLiveForJava>

Example

The following example demonstrates how to insert a menu separator into a menu.  In the instance of EditLive! for Java created from this configuration the menu separator will appear between the Redo and the Cut commands.

<editLiveForJava>
    ...
    <menuBar>
        <menu name="Edit">
            <menuItem name="mnuUndo"/>
            <menuItem name="mnuRedo"/>
            <menuSeparator/>
            <menuItem name="mnuCut"/>
            <menuItem name="mnuCopy"/>
            <menuItem name="mnuPaste"/>
        </menu>
    </menuBar>
    ...
</editLiveForJava>

Remarks

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

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

    <menuSeparator/>

See Also