CKEDITOR.plugins.ae_menubridge Class
src/ui/react/src/uibridge/menu.jsx:9
CKEditor plugin that bridges the support offered by CKEditor Menu plugin. It takes over the responsibility of adding, removing and retrieving menu groups and items
- editor.addMenuGroup(name, order)
- editor.addMenuItem(name, definition)
- editor.addMenuItems(definitions)
- editor.getMenuItem(name)
- editor.removeMenuItem(name)
Constructor
Index
Methods
addMenuGroup
-
name
-
[order=100]
Registers an item group to the editor context menu in order to make it possible to associate it with menu items later.
Parameters:
-
name
StringSpecify a group name.
-
[order=100]
Number optionalDefine the display sequence of this group inside the menu. A smaller value gets displayed first.
addMenuItem
-
name
-
definition
Adds an item from the specified definition to the editor context menu.
Parameters:
-
name
StringThe menu item name.
-
definition
ObjectThe menu item definition.
addMenuItems
-
definitions
Adds one or more items from the specified definition object to the editor context menu.
Parameters:
-
definitions
ObjectObject where keys are used as itemName and corresponding values as definition for a {@link #addMenuItem} call.
getMenuItem
-
name
Retrieves a particular menu item definition from the editor context menu.
Parameters:
-
name
StringThe name of the desired menu item.
Returns:
init
-
editor
Set the add handler for UI_BUTTON to our own. We do this in the init phase to override the one in the native plugin in case it's present.
Parameters:
-
editor
ObjectThe CKEditor instance being initialized
removeMenuItem
-
name
Removes a particular menu item added before from the editor context menu.
Parameters:
-
name
StringThe name of the desired menu item.