@ckeditor/ckeditor5-email 48.2.0 → 48.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/augmentation.d.ts +28 -28
- package/dist/emailconfigurationconfig.d.ts +54 -54
- package/dist/emailconfigurationhelper.d.ts +53 -53
- package/dist/emailconfigurationlogger.d.ts +31 -31
- package/dist/emailinlinestylestransformations.d.ts +44 -44
- package/dist/index.d.ts +35 -35
- package/dist/index.js +1 -1
- package/dist/integrations/emptyblock.d.ts +30 -30
- package/dist/integrations/exportinlinestyles.d.ts +30 -30
- package/dist/integrations/font.d.ts +30 -30
- package/dist/integrations/generalhtmlintegration.d.ts +30 -30
- package/dist/integrations/highlight.d.ts +30 -30
- package/dist/integrations/image.d.ts +30 -30
- package/dist/integrations/link.d.ts +30 -30
- package/dist/integrations/list.d.ts +30 -30
- package/dist/integrations/listmultilevel.d.ts +30 -30
- package/dist/integrations/markdown.d.ts +30 -30
- package/dist/integrations/mathtype.d.ts +30 -30
- package/dist/integrations/mediaembed.d.ts +30 -30
- package/dist/integrations/mergefields.d.ts +30 -30
- package/dist/integrations/sourceediting.d.ts +30 -30
- package/dist/integrations/table.d.ts +30 -30
- package/dist/integrations/template.d.ts +30 -30
- package/dist/integrations/todolist.d.ts +30 -30
- package/dist/integrations/upload.d.ts +30 -30
- package/dist/transformations/transformemailaligntoattribute.d.ts +42 -42
- package/dist/transformations/transformemailcolumnwidthstocells.d.ts +17 -17
- package/dist/transformations/transformemailfigcaptiontodiv.d.ts +9 -9
- package/dist/transformations/transformemailfiguretotable.d.ts +55 -55
- package/dist/transformations/transformemailfloattoalign.d.ts +13 -13
- package/dist/transformations/transformemailimagewidthattributes.d.ts +13 -13
- package/dist/transformations/transformemailmargintoalign.d.ts +19 -19
- package/dist/transformations/utils.d.ts +87 -87
- package/package.json +10 -10
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { EmailConfigurationLogger } from
|
|
6
|
+
* @module email/integrations/template
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { EmailConfigurationLogger } from "../emailconfigurationlogger.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* A plugin that checks if the Template plugin is properly configured for the email integration.
|
|
13
|
+
*/
|
|
14
14
|
export declare class TemplateEmailIntegration extends Plugin {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get requires(): PluginDependenciesOf<[EmailConfigurationLogger]>;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get pluginName(): "TemplateEmailIntegration";
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static override get isOfficialPlugin(): true;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static override get isPremiumPlugin(): true;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
afterInit(): void;
|
|
35
35
|
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { EmailConfigurationLogger } from
|
|
6
|
+
* @module email/integrations/todolist
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { EmailConfigurationLogger } from "../emailconfigurationlogger.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* A plugin that warns about using the TodoList plugin in the email integration.
|
|
13
|
+
*/
|
|
14
14
|
export declare class TodoListEmailIntegration extends Plugin {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get requires(): PluginDependenciesOf<[EmailConfigurationLogger]>;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get pluginName(): "TodoListEmailIntegration";
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static override get isOfficialPlugin(): true;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static override get isPremiumPlugin(): true;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
afterInit(): void;
|
|
35
35
|
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { EmailConfigurationLogger } from
|
|
6
|
+
* @module email/integrations/upload
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { EmailConfigurationLogger } from "../emailconfigurationlogger.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* A plugin that checks if the upload is properly configured for the email integration.
|
|
13
|
+
*/
|
|
14
14
|
export declare class UploadEmailIntegration extends Plugin {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get requires(): PluginDependenciesOf<[EmailConfigurationLogger]>;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get pluginName(): "UploadEmailIntegration";
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static override get isOfficialPlugin(): true;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static override get isPremiumPlugin(): true;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
afterInit(): void;
|
|
35
35
|
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import type { ExportInlineStylesTransformation } from
|
|
6
|
+
* @module email/transformations/transformemailaligntoattribute
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { ExportInlineStylesTransformation } from "@ckeditor/ckeditor5-export-inline-styles";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
11
|
+
* Promotes a shared alignment value from all direct children of a `<td>` element up to a
|
|
12
|
+
* `align` attribute on the cell itself, removing the per-child alignment in the process.
|
|
13
|
+
*
|
|
14
|
+
* Examples:
|
|
15
|
+
* ```
|
|
16
|
+
* // All children share align="center" via inline style:
|
|
17
|
+
* <td>
|
|
18
|
+
* <p style="text-align: center;">…</p>
|
|
19
|
+
* <p style="text-align: center;">…</p>
|
|
20
|
+
* </td>
|
|
21
|
+
* →
|
|
22
|
+
* <td align="center">
|
|
23
|
+
* <p>…</p>
|
|
24
|
+
* <p>…</p>
|
|
25
|
+
* </td>
|
|
26
|
+
*
|
|
27
|
+
* // All children share align="center" via wrapper tables:
|
|
28
|
+
* <td>
|
|
29
|
+
* <table role="presentation" width="100%"><tbody><tr><td align="center"><img …></td></tr></tbody></table>
|
|
30
|
+
* <table role="presentation" width="100%"><tbody><tr><td align="center"><p …></p></td></tr></tbody></table>
|
|
31
|
+
* </td>
|
|
32
|
+
* →
|
|
33
|
+
* <td align="center">
|
|
34
|
+
* <img …>
|
|
35
|
+
* <p …></p>
|
|
36
|
+
* </td>
|
|
37
|
+
*
|
|
38
|
+
* // Mixed alignments → no change:
|
|
39
|
+
* <td>
|
|
40
|
+
* <p style="text-align: center;">…</p>
|
|
41
|
+
* <p style="text-align: left;">…</p>
|
|
42
|
+
* </td>
|
|
43
|
+
* → (unchanged)
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
46
|
export declare const transformEmailAlignToAttribute: ExportInlineStylesTransformation;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { type ExportInlineStylesTransformation } from
|
|
6
|
+
* @module email/transformations/transformemailcolumnwidthstocells
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type ExportInlineStylesTransformation } from "@ckeditor/ckeditor5-export-inline-styles";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
* Copies per-column widths from a `<colgroup>`'s `<col>` children onto every matching
|
|
12
|
+
* `<td>`/`<th>` cell as a `width` HTML attribute. Outlook (Microsoft Word rendering
|
|
13
|
+
* engine) and other email clients ignore `<colgroup>`/`<col>` widths, so widths must
|
|
14
|
+
* be duplicated on the cells themselves.
|
|
15
|
+
*
|
|
16
|
+
* Skipped (transformer is a no-op on the entire table) when:
|
|
17
|
+
* - The table has no `<colgroup>` direct child, or no `<col>` carries a width.
|
|
18
|
+
* - Any `<col>` has `span` > 1, or any cell has `colspan`/`rowspan` > 1 (simple tables only).
|
|
19
|
+
* - Any cell already has a `width` attribute or `width:` style — preserves user-configured layout.
|
|
20
|
+
*/
|
|
21
21
|
export declare const transformEmailColumnWidthsToCells: ExportInlineStylesTransformation;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { type ExportInlineStylesTransformation } from
|
|
6
|
+
* @module email/transformations/transformemailfigcaptiontodiv
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type ExportInlineStylesTransformation } from "@ckeditor/ckeditor5-export-inline-styles";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* Transforms a FIGCAPTION element into a DIV element to make it more compatible with email clients.
|
|
12
|
+
*/
|
|
13
13
|
export declare const transformEmailFigcaptionToDiv: ExportInlineStylesTransformation;
|
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { type ExportInlineStylesTransformation } from
|
|
6
|
+
* @module email/transformations/transformemailfiguretotable
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type ExportInlineStylesTransformation } from "@ckeditor/ckeditor5-export-inline-styles";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
11
|
+
* Transforms a `<figure>` element into an email-compatible structure by replacing it with
|
|
12
|
+
* a table-based layout. The exact output depends on the figure's styles and children:
|
|
13
|
+
*
|
|
14
|
+
* **Float — single inner `<table>`** (figure is just a float wrapper):
|
|
15
|
+
* The inner table is promoted in place; figure styles are merged into it and `float`
|
|
16
|
+
* is converted to an `align` attribute.
|
|
17
|
+
* ```
|
|
18
|
+
* <figure style="float: left;"><table>…</table></figure>
|
|
19
|
+
* →
|
|
20
|
+
* <table align="left" style="…">…</table>
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* **Float — mixed content** (figure wraps multiple children alongside float):
|
|
24
|
+
* All children are moved into a single-cell presentation table that carries the float
|
|
25
|
+
* as an `align` attribute.
|
|
26
|
+
* ```
|
|
27
|
+
* <figure style="float: right;"><img><figcaption>…</figcaption></figure>
|
|
28
|
+
* →
|
|
29
|
+
* <table align="right" style="…"><tbody><tr><td><img><figcaption>…</figcaption></td></tr></tbody></table>
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* **Margin-based alignment — single inner `<table>`** (figure is a `display:table` alignment wrapper):
|
|
33
|
+
* The inner table is promoted in place; figure styles (minus `display`, layout props) are
|
|
34
|
+
* merged into it. Alignment and width are already encoded in the surrounding fallback tables
|
|
35
|
+
* added by `wrapWithFallbackTables`.
|
|
36
|
+
* ```
|
|
37
|
+
* <figure style="display: table; margin: auto; width: 600px;"><table>…</table></figure>
|
|
38
|
+
* →
|
|
39
|
+
* <table width="100%"><tbody><tr><td align="center">
|
|
40
|
+
* <table width="600"><tbody><tr><td>
|
|
41
|
+
* <table style="…">…</table>
|
|
42
|
+
* </td></tr></tbody></table>
|
|
43
|
+
* </td></tr></tbody></table>
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* **Margin-based alignment — mixed content** (figure wraps an image, caption, etc.):
|
|
47
|
+
* The figure is replaced with a `<div>` that inherits its attributes, and the whole
|
|
48
|
+
* thing is wrapped in one or two fallback tables for alignment and width.
|
|
49
|
+
* ```
|
|
50
|
+
* <figure style="margin: auto; width: 600px;"><img><figcaption>…</figcaption></figure>
|
|
51
|
+
* →
|
|
52
|
+
* <table width="100%"><tbody><tr><td align="center">
|
|
53
|
+
* <table width="600"><tbody><tr><td>
|
|
54
|
+
* <div style="…"><img><figcaption>…</figcaption></div>
|
|
55
|
+
* </td></tr></tbody></table>
|
|
56
|
+
* </td></tr></tbody></table>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
59
|
export declare const transformEmailFigureToTable: ExportInlineStylesTransformation;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { type ExportInlineStylesTransformation } from
|
|
6
|
+
* @module email/transformations/transformemailfloattoalign
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { type ExportInlineStylesTransformation } from "@ckeditor/ckeditor5-export-inline-styles";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
* Transform float: left/right to align="left"/"right" for table and img elements.
|
|
12
|
+
*
|
|
13
|
+
* Examples:
|
|
14
|
+
* * `<table style="float: left">` → `<table style="float: left" align="left">`
|
|
15
|
+
* * `<img style="float: right">` → `<img style="float: right" align="right">`
|
|
16
|
+
*/
|
|
17
17
|
export declare const transformEmailFloatToAlign: ExportInlineStylesTransformation;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import type { ExportInlineStylesTransformation } from
|
|
6
|
+
* @module email/transformations/transformemailimagewidthattributes
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { ExportInlineStylesTransformation } from "@ckeditor/ckeditor5-export-inline-styles";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
* Removes width and height attributes from images that have width defined in styles.
|
|
12
|
+
* This helps to prevent issues with image scaling in some email clients.
|
|
13
|
+
*
|
|
14
|
+
* Example:
|
|
15
|
+
* * `<img style="width: 100px;" width="200" height="150">` → `<img style="width: 100px; height: auto;">`
|
|
16
|
+
*/
|
|
17
17
|
export declare const transformEmailImageWidthAttributes: ExportInlineStylesTransformation;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import type { ExportInlineStylesTransformation } from
|
|
6
|
+
* @module email/transformations/transformemailmargintoalign
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { ExportInlineStylesTransformation } from "@ckeditor/ckeditor5-export-inline-styles";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
* Handle margin-left and margin-right combinations for alignment of the table element.
|
|
12
|
+
* It skips elements with float style because float has higher priority for alignment.
|
|
13
|
+
*
|
|
14
|
+
* It wraps the `<table>` in a container `<table>` to ensure proper alignment in all email clients.
|
|
15
|
+
*
|
|
16
|
+
* Examples:
|
|
17
|
+
* * `<table style="margin: auto">` →
|
|
18
|
+
* `<table width="100%"><tr><td align="center"><table style="...">...</table></td></tr></table>`
|
|
19
|
+
*
|
|
20
|
+
* * `<table style="margin-left: auto; width: 500px">` →
|
|
21
|
+
* `<table width="100%"><tr><td align="right"><table width="500"><tr><td><table style="...">...</table>...`
|
|
22
|
+
*/
|
|
23
23
|
export declare const transformEmailMarginToAlign: ExportInlineStylesTransformation;
|