<menuSeparator> Configuration Element

This element places a horizontal separating line between commands within a Ephox EditLive! for XML 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.

Configuration Element Tree Structure

<editLive>
     ...
     <menuBar>
          <menu>
               <menuSeparator/>
          </menu>
     </menuBar>
     ...
</editLive>

Examples

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

<editLive>
    ...
    <menuBar>
        <menu name="Edit">
            <menuItem name="Undo"/>
            <menuItem name="Redo"/>
            <menuSeparator/>
            <menuItem name="Cut"/>
            <menuItem name="Copy"/>
            <menuItem name="Paste"/>
        </menu>
    </menuBar>
    ...
</editLive> 

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