<p>Use the shortcut <code>Cmd+Option+U</code> on Mac or <code>Ctrl+Alt+U</code> if your on Windows or press the plus button to insert a username here: </p>
@ -76,9 +76,7 @@ A basic menu item triggers its `onAction` function when clicked.
| disabled | boolean | optional | default: false - Represents the menu item's state. When true, the menu item is unclickable. Toggled by the menu item's API. |
| onSetup | `(api) => (api) => void` | optional | default: `() => () => {}` - Function invoked when the menu item is rendered, each time its menu is opened. |
| onAction | `(api) => void` | required | Function invoked when the menu item is clicked. |
| shortcut | string | optional | Sets a keyboard shortcut for activating the menu item, such as: `shortcut: 'Ctrl+Alt+Delete'`. For information on available shortcut modifiers, see: [Shortcut modifier key mappings](#shortcutmodifierkeymappings). |
###{% include misc/shortcut-os-mappings.md %}
| shortcut | string | optional | Text to display in the shortcut label. To register a shortcut see: [`Add custom shortcuts to TinyMCE`]({{site.baseurl}}/advanced/keyboard-shortcuts/#addcustomshortcutstotinymce). |
#### API
@ -120,10 +118,7 @@ A nested menu item is a menu item with a submenu. Registering a submenu this way
| value | string | optional | A value to associate with the menu item. |
| onSetup | `(api) => (api) => void` | optional | default: `() => () => {}` - Function invoked when the menu item is rendered, each time its menu is opened. |
| getSubmenuItems | `() => string` or `MenuItem[]` | required | Function invoked when the menu item is clicked to open its submenu. Must return either a space separated string of registered menu names or an array of basic, toggle or nested menu items specifications. |
| shortcut | string | optional | Sets a keyboard shortcut for activating the menu item, such as: `shortcut: 'Ctrl+Alt+Delete'`. For information on available shortcut modifiers, see: [Shortcut modifier key mappings](#shortcutmodifierkeymappings2). |
| shortcut | string | optional | Text to display in the shortcut label. To register a shortcut see: [`Add custom shortcuts to TinyMCE`]({{site.baseurl}}/advanced/keyboard-shortcuts/#addcustomshortcutstotinymce). |