Report an issue
Class

CKEDITOR.plugins.imagebase

class singleton since 4.9.0

Namespace providing a set of helper functions for working with image widgets.

Filtering

Properties

Methods

  • addFeature( editor, name, definition ) → imageWidgetDefinition

    Adds a new feature to the passed widget's definition by invoking the initial setup once for the editor and extending the widget's definition to include all fields needed by this feature.

    var widgetDefinition = {};
    widgetDefinition = CKEDITOR.plugins.imagebase.addFeature( editor, 'link', widgetDefinition );
    CKEDITOR.plugins.imagebase.addImageWidget( editor, 'myWidget', widgetDefinition );
    

    Parameters

    editor : editor

    The editor that will get the widget registered.

    name : String

    The feature name.

    definition : imageWidgetDefinition

    The widget's definition.

    Returns

    imageWidgetDefinition

    The widget's definition extended with fields needed by the feature.

  • addImageWidget( editor, name, definition )

    Registers a new widget based on the passed definition.

    Parameters

    editor : editor

    The editor that will get the widget registered.

    name : String

    The widget name.

    definition : imageWidgetDefinition

    The widget's definition.