Show:

ButtonActionStyle is a mixin that provides applying style implementation for a button based on the applyStyle and removeStyle API of CKEDITOR.

To execute properly, the component has to expose the following methods which can be obtained out of the box using the ButtonStyle mixin:

  • Function isActive to check the active state
  • Function getStyle to return the style that should be applied

Index

Methods

Methods

applyStyle

()

Removes or applies the component style to the current selection.

extend

(
  • receiver
  • supplier
  • protoProps
  • staticProps
)
Function static

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 Function

    The class which will extend another class.

  • supplier Function

    The class which will provide the properties the child class.

  • protoProps Object

    Prototype properties to add/override.

  • staticProps Object

    Static properties to add/overwrite.

Returns:

Function:

The extended class.