CKEDITOR.plugins.ae_panelmenubuttonbridge Class
CKEditor plugin that bridges the support offered by CKEditor PanelButton plugin. It takes over the responsibility of registering and creating buttons via:
- editor.ui.addPanelMenuButton(name, definition)
- editor.ui.add(name, CKEDITOR.UI_PANELBUTTON, definition)
Constructor
Index
Methods
Methods
generatePanelMenuButtonBridge
-
panelMenuButtonName
-
panelMenuButtonDefinition
Generates a PanelMenuButtonBridge React class for a given panelmenubutton definition if it has not been already created based on the panelmenubutton name and definition.
Parameters:
-
panelMenuButtonName
StringThe panel button name
-
panelMenuButtonDefinition
ObjectThe panel button definition
Returns:
The generated or already existing React PanelMenuButton Class
init
-
editor
Set the add handler for UI_PANELBUTTON 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