NEWCKEditor AI is here! Learn how to supercharge your editor with AI on our webinar.
Sign up (with export icon)

Plugin

Api-class iconclass

The base class for CKEditor plugin classes.

Properties

  • Chevron-right icon

    editor : Editor
    readonly

    The editor instance.

    Note that most editors implement the ui property. However, editors with an external UI (i.e. Bootstrap-based) or a headless editor may not have this property or throw an error when accessing it.

    Because of above, to make plugins more universal, it is recommended to split features into:

    • The "editing" part that uses the Editor class without ui property.
    • The "UI" part that uses the Editor class and accesses ui property.
  • Chevron-right icon

    Flag indicating whether a plugin is enabled or disabled. A disabled plugin will not transform text.

    Plugin can be simply disabled like that:

    // Disable the plugin so that no toolbars are visible.
    editor.plugins.get( 'TextTransformation' ).isEnabled = false;
    
    Copy code

    You can also use forceDisabled method.

  • Chevron-right icon

    _disableStack : Set<string>
    Lock iconprivate

    Holds identifiers for forceDisabled mechanism.

Static properties

Methods