Show:

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

CKEDITOR.plugins.ae_panelmenubuttonbridge

()

Methods

generatePanelMenuButtonBridge

(
  • panelMenuButtonName
  • panelMenuButtonDefinition
)
Object private

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 String

    The panel button name

  • panelMenuButtonDefinition Object

    The panel button definition

Returns:

Object:

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 Object

    The CKEditor instance being initialized