Optional
activeWhether the current item is active under the given selection or cursor.
Optional
attrsAn object of attributes for the node or mark.
Optional
classAn optional class to apply to the menu item.
Optional
cmdThe command to run when the menu item is clicked.
Optional
groupEntries with the same group number will be grouped together in the drop-down. Lower-numbered groups appear higher in the list.
Optional
iconThe menu item's icon HTML.
Optional
markThe mark to apply to the selected text.
Optional
nodeThe node to wrap the selected text in.
Optional
priorityA numeric priority which determines whether this item is displayed as the dropdown title. Lower priority takes precedence.
Optional
styleAn optional style to apply to the title text.
The description of the menu item.
A string identifier for this menu item.