CKEDITOR.plugins.ae_buttonbridge Class
src/ui/react/src/uibridge/button.jsx:120
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)
Constructor
Index
Methods
centerToolbar
-
toolbar
-
rect
Centers a Toolbar according to given rectangle
Parameters:
-
toolbar
ObjectThe toolbar to be centered
-
rect
ObjectThe rectangle according to which the Toolbar will be centered
extend
-
receiver
-
supplier
-
protoProps
-
staticProps
Sets the prototype, constructor and superclass properties to support an inheritance strategy that can chain constructors and methods. Static members will not be inherited.
Parameters:
-
receiver
FunctionThe class which will extend another class.
-
supplier
FunctionThe class which will provide the properties the child class.
-
protoProps
ObjectPrototype properties to add/override.
-
staticProps
ObjectStatic properties to add/overwrite.
Returns:
The extended class.
generateButtonBridge
-
buttonName
-
buttonDefinition
Generates a ButtonBridge React class for a given button definition if it has not been already created based on the button name and definition.
Parameters:
-
buttonName
StringThe button's name
-
buttonDefinition
ObjectThe button's definition
Returns:
The generated or already existing React Button Class
imageSelectionSetPosition
-
payload
Sets the position of a toolbar according to the position of the selected image
Parameters:
-
payload
ObjectPayload, should contain the selection data for retrieving the client rectangle of the selected image
Returns:
True, in all cases
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
tableSelectionSetPosition
-
payload
Sets the position of a toolbar according to the position of the selected image
Parameters:
-
payload
ObjectObject, which contains the selection data for retrieving the client rectangle of the selected table
Returns:
True, in all cases