Report an issue
Class

CKEDITOR.pluginDefinition

classabstract

A virtual class that just illustrates the features of plugin objects which are passed to the CKEDITOR.plugins.add method.

This class is not really a part of the API, so its constructor should not be called.

See also:

Filtering

Properties

  • since 4.2.0

    hidpi : Boolean

    Announces the plugin as HiDPI-ready (optimized for high pixel density screens, e.g. Retina) by providing high-resolution icons and images. HiDPI icons must be twice as big (defaults are 16px x 16px) and stored under plugin_name/icons/hidpi/ directory.

    The common place for additional HiDPI images used by the plugin (but not icons) is the plugin_name/images/hidpi/ directory.

    This property is optional and only makes sense if 32px x 32px icons and high-resolution images actually exist. If this flag is set to true, the editor will automatically detect the HiDPI environment and attempt to load the high-resolution resources.

  • icons : String

    The list of icon files registered by this plugin. These files are stored inside the icons directory in the plugin directory and follow the name pattern of name.png.

    CKEDITOR.plugins.add( 'sample', {
        icons: 'first,second'
    } );
    
  • lang : String | String[]

    The list of language files available for this plugin. These files are stored inside the lang directory in the plugin directory, follow the name pattern of langCode.js, and contain the language definition created with CKEDITOR.plugins.setLang.

    When the plugin is being loaded, the editor checks this list to see if a language file in the current editor language (CKEDITOR.editor.langCode) is available, and if so, loads it. Otherwise, the file represented by the first item in the list is loaded.

    CKEDITOR.plugins.add( 'sample', {
        lang: 'en,fr'
    } );
    

    Or:

    CKEDITOR.plugins.add( 'sample', {
        lang: [ 'en', 'fr' ]
    } );
    
  • requires : String | String[]

    A list of plugins that are required by this plugin. Note that this property does not determine the loading order of the plugins.

    CKEDITOR.plugins.add( 'sample', {
        requires: 'button,selection'
    } );
    

    Or:

    CKEDITOR.plugins.add( 'sample', {
        requires: [ 'button', 'selection' ]
    } );
    

Methods