CKFinder 3 Documentation

CKFinder.Skin

Reference for skin definitions (skin.js).

To learn about creating custom skins check Creating Custom Skins tutorial.

Defined By

Properties

CKFinder.Skin
: Object
Alternative method of defining configuration. ...

Alternative method of defining configuration. A configuration definition that will be added to resulting configuration. If you prefer using a callback function define config method.

CKFinder.define( {
    config: {
        swatch: 'a'
    }
} );
CKFinder.Skin
: Object

A path from which skin.js file was loaded.

A path from which skin.js file was loaded.

Defined By

Methods

CKFinder.Skin
( config )
Alternative method of defining configuration. ...

Alternative method of defining configuration. Return a configuration that will be added to resulting configuration. This method is called on earliest possible stage of bootstraping CKFinder, so CKFinder.Application instance is not available. This method is meant to override default skin-related options, like CKFinder.Config.themeCSS, CKFinder.Config.swatch, CKFinder.Config.iconsCSS, etc. If you prefer using only configuration object define config property.

CKFinder.define( {
    config: function( config ) {
        return {
            swatch: config.swatch === 'a' ? 'b' : 'a';
        }
    }
} );

Parameters

CKFinder.Skin
( finder )
Optional init method that will be called on Application bootstrap. ...

Optional init method that will be called on Application bootstrap.

CKFinder.define( {
    init: function( finder ) {
        finder.on( 'app:start', function() {
           finder.fire( 'my-skin:ready' );
       } );
    }
} );

Parameters