NEWCKEditor AI on your premises: Hook your LLM and register MCP tools. Webinar coming soon!
Sign up (with export icon)

engine/view/styles/background

Api-module iconmodule

Functions

  • Chevron-right icon

    addBackgroundStylesRules( stylesProcessor ) → void

    Adds background CSS styles processing rules to the given StylesProcessor.

    Registers normalizers for the background shorthand and its longhand properties, reducers that serialize them back to CSS strings, and the relation mapping between them.

    editor.data.addStyleProcessorRules( addBackgroundStylesRules );
    
    Copy code

    Parameters

    stylesProcessor : StylesProcessor

    The styles processor instance to register rules on.

    Returns

    void