Context Menu Items Available for TinyMCE
Available context menu sections
The following table shows all context menu sections, including sections provided by plugins. Any menu item can also be added to the context menu. To retrieve a list from the editor, run the following command from the browser console:
tinymce.activeEditor.ui.registry.getAll().contextMenus
The identifier below will add a context menu section containing one or more items. It is not possible to add individual items from the following context menu sections.
A section adds items only when the context menu is opened on matching content, as described in the Appears when column. On other content, the section is left out of the menu. A section also appears only if its identifier is in the contextmenu option. The default value does not include advtemplate, lists, or math.
| Identifier | Core/Plugin | Appears when | Description |
|---|---|---|---|
advtemplate |
The |
Adds the Save as template… item for saving the selected content as a template. |
|
configurepermanentpen |
The permanent pen is in use. |
Adds the Permanent pen properties… item for opening the Permanent Pen Properties dialog. |
|
editimage |
The context menu is opened on an image that the plugin can edit: an image on the same host as the page, a |
Adds the Edit image item for opening the Edit Image dialog. |
|
image |
The context menu is opened on an existing, editable image. |
Adds the Image… item for opening the Insert/Edit Image dialog to edit the selected image. This section does not add an item for inserting a new image. To insert an image, use the |
|
link |
The context menu is opened on editable content. |
Adds the Link… item for opening the Insert/Edit Link dialog. When the context menu is opened on a link, the Remove link and Open link items are also added. |
|
linkchecker |
The context menu is opened on a link marked as broken. |
Adds the Ignore item, allowing the user to instruct linkchecker to ignore the link. When the |
|
lists |
The context menu is opened in an ordered (numbered) list. |
Adds the List properties… item for opening the List Properties dialog. |
|
math |
The context menu is opened on a math equation. |
Adds the Math… item for editing the equation. |
|
spellchecker |
The context menu is opened on a misspelled word. |
Adds a list of suggested corrections, an Ignore item, and an Ignore all item. |
|
table |
The context menu is opened in a table. |
Adds table related context menu items, including Enhanced Tables context menu items (if the Enhanced Tables plugin is enabled). In a table caption, only the table properties and delete table items are added. |
For a list of available menu items that can be added to the context menu, see: Menu Items Available for TinyMCE.
For information on customizing the context menu and adding custom context menu sections, see: Context menu.