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

ExportInlineStylesTransformation

Api-typedef icontypedef

Parameters

element : HTMLElement

The DOM element being processed.

stylesMap : StylesMap

The map of styles to be applied to the element.

Returns

HTMLElement | undefined | void

The new element that will be used instead of the original one, or undefined to keep the original element. It may be used when transformer replaces one element with another (e.g., figure to div).