Module

engine/view/styles/margin

@ckeditor/ckeditor5-engine/src/view/styles/margin

module

Filtering

Functions

  • addMarginRules( stylesProcessor ) → void

    Adds a margin CSS styles processing rules.

    editor.data.addStyleProcessorRules( addMarginRules );
    

    The normalized value is stored as:

    const styles = {
    	margin: {
    		top,
    		right,
    		bottom,
    		left
    	}
    };
    

    Parameters

    stylesProcessor : StylesProcessor

    Returns

    void