CKEditor plugin that bridges the support offered by CKEditor Button plugin. It takes over the responsibility of registering and creating buttons via:
- editor.ui.addButton(name, definition)
- editor.ui.add(name, CKEDITOR.UI_BUTTON, definition)
Sets the prototype, constructor and superclass properties to support an inheritance strategy that can chain constructors and methods. Static members will not be inherited.
The class which will extend another class.
The class which will provide the properties the child class.
Prototype properties to add/override.
Static properties to add/overwrite.
The extended class.
Generates a ButtonBridge React class for a given button definition if it has not been already created based on the button name and definition.
The button's name
The button's definition
The generated or already existing React Button Class
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.
The CKEditor instance being initialized