CKEDITOR.plugins.imagebase
classsingletonsince 4.9.0
Namespace providing a set of helper functions for working with image widgets.
Filtering
Properties
featuresDefinitions : ObjectCKEDITOR.plugins.imagebase#featuresDefinitionsAn object that contains all available feature definitions.
Methods
addFeature( editor, name, definition ) → imageWidgetDefinitionCKEDITOR.plugins.imagebase#addFeatureAdds 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 : editorThe editor that will get the widget registered.
name : StringThe feature name.
definition : imageWidgetDefinitionThe widget's definition.
Returns
imageWidgetDefinitionThe widget's definition extended with fields needed by the feature.
addImageWidget( editor, name, definition )CKEDITOR.plugins.imagebase#addImageWidgetRegisters a new widget based on the passed definition.
Parameters
editor : editorThe editor that will get the widget registered.
name : StringThe widget name.
definition : imageWidgetDefinitionThe widget's definition.