public/ckeditor/4.4dev/core/style.js
function( callback ) {
		if ( !this._.stylesDefinitions ) {
			var editor = this,
				// Respect the backwards compatible definition entry
				configStyleSet = editor.config.stylesCombo_stylesSet || editor.config.stylesSet;

			// The false value means that none styles should be loaded.
			if ( configStyleSet === false ) {
				callback( null );
				return;
			}

			// #5352 Allow to define the styles directly in the config object
			if ( configStyleSet instanceof Array ) {
				editor._.stylesDefinitions = configStyleSet;
				callback( configStyleSet );
				return;
			}

			// Default value is 'default'.
			if ( !configStyleSet )
				configStyleSet = 'default';

			var partsStylesSet = configStyleSet.split( ':' ),
				styleSetName = partsStylesSet[ 0 ],
				externalPath = partsStylesSet[ 1 ];

			CKEDITOR.stylesSet.addExternal( styleSetName, externalPath ? partsStylesSet.slice( 1 ).join( ':' ) : CKEDITOR.getUrl( 'styles.js' ), '' );

			CKEDITOR.stylesSet.load( styleSetName, function( stylesSet ) {
				editor._.stylesDefinitions = stylesSet[ styleSetName ];
				callback( editor._.stylesDefinitions );
			} );
		} else {
			callback( this._.stylesDefinitions );
		}
	}
function( callback ) {
		if ( !this._.stylesDefinitions ) {
			var editor = this,
				// Respect the backwards compatible definition entry
				configStyleSet = editor.config.stylesCombo_stylesSet || editor.config.stylesSet;

			// The false value means that none styles should be loaded.
			if ( configStyleSet === false ) {
				callback( null );
				return;
			}

			// #5352 Allow to define the styles directly in the config object
			if ( configStyleSet instanceof Array ) {
				editor._.stylesDefinitions = configStyleSet;
				callback( configStyleSet );
				return;
			}

			// Default value is 'default'.
			if ( !configStyleSet )
				configStyleSet = 'default';

			var partsStylesSet = configStyleSet.split( ':' ),
				styleSetName = partsStylesSet[ 0 ],
				externalPath = partsStylesSet[ 1 ];

			CKEDITOR.stylesSet.addExternal( styleSetName, externalPath ? partsStylesSet.slice( 1 ).join( ':' ) : CKEDITOR.getUrl( 'styles.js' ), '' );

			CKEDITOR.stylesSet.load( styleSetName, function( stylesSet ) {
				editor._.stylesDefinitions = stylesSet[ styleSetName ];
				callback( editor._.stylesDefinitions );
			} );
		} else {
			callback( this._.stylesDefinitions );
		}
	}
function ( callback ) { if ( ! this . _ . stylesDefinitions ) { var editor = this , // Respect the backwards compatible definition entry configStyleSet = editor . config . stylesCombo_stylesSet || editor . config . stylesSet ; // The false value means that none styles should be loaded. if ( configStyleSet === false ) { callback ( null ) ; return ; } // #5352 Allow to define the styles directly in the config object if ( configStyleSet instanceof Array ) { editor . _ . stylesDefinitions = configStyleSet ; callback ( configStyleSet ) ; return ; } // Default value is 'default'. if ( ! configStyleSet ) configStyleSet = 'default' ; var partsStylesSet = configStyleSet . split ( ':' ) , styleSetName = partsStylesSet [ 0 ] , externalPath = partsStylesSet [ 1 ] ; CKEDITOR . stylesSet . addExternal ( styleSetName , externalPath ? partsStylesSet . slice ( 1 ) . join ( ':' ) : CKEDITOR . getUrl ( 'styles.js' ) , '' ) ; CKEDITOR . stylesSet . load ( styleSetName , function ( stylesSet ) { editor . _ . stylesDefinitions = stylesSet [ styleSetName ] ; callback ( editor . _ . stylesDefinitions ) ; } ) ; } else { callback ( this . _ . stylesDefinitions ) ; } }
Gets the current `stylesSet` for this instance.

editor.getStylesSet( function( stylesDefinitions ) {} );

See also {@link CKEDITOR.editor#stylesSet} event.

@member CKEDITOR.editor
@param {Function} callback The function to be called with the styles data.
Gets the current stylesSet for this instance .