Module

style/utils

@ckeditor/ckeditor5-style/src/utils

module

Filtering

Functions

  • normalizeConfig( dataSchema, styleDefinitions ) → Object

    protected

    Normalizes definitions in the configuration of the styles feature. The structure of normalized styles looks as follows:

    {
    	block: [
    		<module:style/style~StyleDefinition>,
    		<module:style/style~StyleDefinition>,
    		...
    	],
    	inline: [
    		<module:style/style~StyleDefinition>,
    		<module:style/style~StyleDefinition>,
    		...
    	]
    }

    Parameters

    dataSchema : DataSchema
    styleDefinitions : Array.<StyleDefinition>

    Returns

    Object

    An object with normalized style definitions grouped into block and inline categories (arrays).