NEWCKEditor AI is here!
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).