# email/emailinlinestylestransformations

module

<a id="interfaces">

## Interfaces

<a id="interface-EmailInlineStylesTransformationsOptions">

### `EmailInlineStylesTransformationsOptions`

<a id="functions">

## Functions

<a id="function-getEmailInlineStylesTransformations">

### `getEmailInlineStylesTransformations( options ) → Array<ExportInlineStylesTransformation>`

Returns a collection of style property transformations designed for email compatibility.

These transformations convert modern CSS styles into HTML attributes better supported by email clients. The transformations focus on converting alignment-related CSS properties into corresponding HTML attributes.

Examples of transformations:

1. Float to align:

* `<img style="float: left">` → `<img align="left">`

2. Shorthand margin for centering:

* `<table style="margin: auto"></table>` → `<table width="100%"><tr><td align="center"><table style="..."></table></td></tr></table>`

Note:

* The `align` attribute is only applied to the `img` elements.
* Tables aligned via margins are wrapped in a container table to ensure proper positioning in all email clients.
* The `align` attribute overrides any existing alignment attributes on these elements.
* If the `float` and `margin` are present, the `float` property takes precedence for alignment.
* The style attributes remain unchanged.

#### Parameters

* `options: EmailInlineStylesTransformationsOptions`

  Configuration options.

  Defaults to `{}`

#### Returns

* `Array<ExportInlineStylesTransformation>`

  An array of transformations to be applied to style properties for email compatibility.

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
