Sign up (with export icon)

engine/view/styles/background

Api-module icon module

Functions

  • Chevron-right icon

    addBackgroundStylesRules( stylesProcessor ) → void

    Adds a background CSS styles processing rules.

    editor.data.addStyleProcessorRules( addBackgroundStylesRules );
    
    Copy code

    The normalized value is stored as:

    const styles = {
    	background: {
    		color,
    		repeat,
    		position,
    		attachment,
    		image
    	}
    };
    
    Copy code

    Note: Currently only 'background-color' longhand value is parsed besides 'background' shorthand. The reducer also supports only 'background-color' value.

    Parameters

    stylesProcessor : StylesProcessor

    Returns

    void