Module

style/utils

@ckeditor/ckeditor5-style/src/utils

module

Filtering

Functions

  • protected

    normalizeConfig( dataSchema, styleDefinitions ) → Object

    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).