UNPKG

@ckeditor/ckeditor5-engine

Version:

The editing engine of CKEditor 5 – the best browser-based rich text editor.

34 lines (33 loc) 875 B
/** * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module engine/view/styles/background */ import type { StylesProcessor } from '../stylesmap.js'; /** * Adds a background CSS styles processing rules. * * ```ts * editor.data.addStyleProcessorRules( addBackgroundStylesRules ); * ``` * * The normalized value is stored as: * * ```ts * const styles = { * background: { * color, * repeat, * position, * attachment, * image * } * }; * ```` * * **Note**: Currently only `'background-color'` longhand value is parsed besides `'background'` shorthand. The reducer also supports only * `'background-color'` value. */ export declare function addBackgroundStylesRules(stylesProcessor: StylesProcessor): void;