@ckeditor/ckeditor5-html-support 48.2.0-alpha.7 → 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 +33 -33
- package/dist/converters.d.ts +42 -42
- package/dist/datafilter.d.ts +300 -300
- package/dist/dataschema.d.ts +177 -177
- package/dist/emptyblock.d.ts +56 -56
- package/dist/fullpage.d.ts +52 -52
- package/dist/generalhtmlsupport.d.ts +103 -103
- package/dist/generalhtmlsupportconfig.d.ts +199 -199
- package/dist/htmlcomment.d.ts +68 -68
- package/dist/htmlpagedataprocessor.d.ts +17 -17
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +30 -30
- package/dist/index.js +3833 -4524
- package/dist/index.js.map +1 -1
- package/dist/integrations/codeblock.d.ts +23 -23
- package/dist/integrations/customelement.d.ts +26 -26
- package/dist/integrations/dualcontent.d.ts +46 -46
- package/dist/integrations/heading.d.ts +30 -30
- package/dist/integrations/horizontalline.d.ts +25 -25
- package/dist/integrations/iframe.d.ts +27 -27
- package/dist/integrations/image.d.ts +25 -25
- package/dist/integrations/integrationutils.d.ts +11 -11
- package/dist/integrations/list.d.ts +27 -27
- package/dist/integrations/mediaembed.d.ts +25 -25
- package/dist/integrations/script.d.ts +25 -25
- package/dist/integrations/style.d.ts +25 -25
- package/dist/integrations/table.d.ts +23 -23
- package/dist/schemadefinitions.d.ts +52 -52
- package/dist/utils.d.ts +54 -54
- package/package.json +12 -12
|
@@ -1,30 +1,30 @@
|
|
|
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
|
-
import { Plugin } from
|
|
9
|
-
import { DataFilter } from
|
|
6
|
+
* @module html-support/integrations/style
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { DataFilter } from "../datafilter.js";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* Provides the General HTML Support for `style` elements.
|
|
12
|
+
*/
|
|
13
13
|
export declare class StyleElementSupport extends Plugin {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get requires(): PluginDependenciesOf<[DataFilter]>;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "StyleElementSupport";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): void;
|
|
30
30
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Plugin } from
|
|
6
|
-
import { DataFilter } from
|
|
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
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
6
|
+
import { DataFilter } from "../datafilter.js";
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
* Provides the General HTML Support integration with {@link module:table/table~Table Table} feature.
|
|
9
|
+
*/
|
|
10
10
|
export declare class TableElementSupport extends Plugin {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
static get requires(): PluginDependenciesOf<[DataFilter]>;
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get pluginName(): "TableElementSupport";
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static override get isOfficialPlugin(): true;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
init(): void;
|
|
27
27
|
}
|
|
@@ -1,57 +1,57 @@
|
|
|
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
|
-
import type { HtmlSupportDataSchemaBlockElementDefinition, HtmlSupportDataSchemaInlineElementDefinition } from
|
|
6
|
+
* @module html-support/schemadefinitions
|
|
7
|
+
*/
|
|
8
|
+
import type { HtmlSupportDataSchemaBlockElementDefinition, HtmlSupportDataSchemaInlineElementDefinition } from "./dataschema.js";
|
|
9
9
|
/**
|
|
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
|
-
|
|
10
|
+
* Skipped elements due to HTML deprecation:
|
|
11
|
+
* * noframes (not sure if we should provide support for this element. CKE4 is not supporting frameset and frame,
|
|
12
|
+
* but it will unpack <frameset><noframes>foobar</noframes></frameset> to <noframes>foobar</noframes>, so there
|
|
13
|
+
* may be some content loss. Although using noframes as a standalone element seems invalid)
|
|
14
|
+
* * keygen (this one is also empty)
|
|
15
|
+
* * applet (support is limited mostly to old IE)
|
|
16
|
+
* * basefont (this one is also empty)
|
|
17
|
+
* * isindex (basically no support for modern browsers at all)
|
|
18
|
+
*
|
|
19
|
+
* Skipped elements due to lack empty element support:
|
|
20
|
+
* * hr
|
|
21
|
+
* * area
|
|
22
|
+
* * br
|
|
23
|
+
* * command
|
|
24
|
+
* * map
|
|
25
|
+
* * wbr
|
|
26
|
+
* * colgroup -> col
|
|
27
|
+
*
|
|
28
|
+
* Skipped elements due to complexity:
|
|
29
|
+
* * datalist with option elements used as a data source for input[list] element
|
|
30
|
+
*
|
|
31
|
+
* Skipped elements as they are handled as an object content:
|
|
32
|
+
* * track
|
|
33
|
+
* * source
|
|
34
|
+
* * option
|
|
35
|
+
* * param
|
|
36
|
+
* * optgroup
|
|
37
|
+
*
|
|
38
|
+
* Skipped full page HTML elements:
|
|
39
|
+
* * body
|
|
40
|
+
* * html
|
|
41
|
+
* * title
|
|
42
|
+
* * head
|
|
43
|
+
* * meta
|
|
44
|
+
* * link
|
|
45
|
+
* * etc...
|
|
46
|
+
*
|
|
47
|
+
* Skipped hidden elements:
|
|
48
|
+
* noscript
|
|
49
|
+
*
|
|
50
|
+
* When adding elements to this list, update the feature guide listing, too.
|
|
51
|
+
*
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
54
|
export declare const defaultConfig: {
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
block: Array<HtmlSupportDataSchemaBlockElementDefinition>;
|
|
56
|
+
inline: Array<HtmlSupportDataSchemaInlineElementDefinition>;
|
|
57
57
|
};
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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
|
-
import type { ModelDocumentSelection, ViewDowncastWriter, ModelItem, ModelRange, ViewElement, ModelWriter } from
|
|
6
|
+
* @module html-support/utils
|
|
7
|
+
*/
|
|
8
|
+
import type { ModelDocumentSelection, ViewDowncastWriter, ModelItem, ModelRange, ViewElement, ModelWriter } from "@ckeditor/ckeditor5-engine";
|
|
9
9
|
export interface GHSViewAttributes {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
attributes?: Record<string, unknown>;
|
|
11
|
+
classes?: Array<string>;
|
|
12
|
+
styles?: Record<string, string>;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Helper function for the downcast converter. Updates attributes on the given view element.
|
|
@@ -22,22 +22,22 @@ export interface GHSViewAttributes {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare function updateViewAttributes(writer: ViewDowncastWriter, oldViewAttributes: GHSViewAttributes, newViewAttributes: GHSViewAttributes, viewElement: ViewElement): void;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
* Helper function for the downcast converter. Sets attributes on the given view element.
|
|
26
|
+
*
|
|
27
|
+
* @param writer The view writer.
|
|
28
|
+
* @param viewAttributes The GHS attribute value.
|
|
29
|
+
* @param viewElement The view element to update.
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
32
|
export declare function setViewAttributes(writer: ViewDowncastWriter, viewAttributes: GHSViewAttributes, viewElement: ViewElement): void;
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
* Helper function for the downcast converter. Removes attributes on the given view element.
|
|
35
|
+
*
|
|
36
|
+
* @param writer The view writer.
|
|
37
|
+
* @param viewAttributes The GHS attribute value.
|
|
38
|
+
* @param viewElement The view element to update.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
41
|
export declare function removeViewAttributes(writer: ViewDowncastWriter, viewAttributes: GHSViewAttributes, viewElement: ViewElement): void;
|
|
42
42
|
/**
|
|
43
43
|
* Merges view element attribute objects.
|
|
@@ -49,43 +49,43 @@ type ModifyGhsAttributesCallback = (t: Map<string, unknown>) => void;
|
|
|
49
49
|
type ModifyGhsClassesCallback = (t: Set<string>) => void;
|
|
50
50
|
type ModifyGhsStylesCallback = (t: Map<string, string>) => void;
|
|
51
51
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
export declare function modifyGhsAttribute(writer: ModelWriter, item: ModelItem | ModelDocumentSelection, ghsAttributeName: string, subject:
|
|
52
|
+
* Updates a GHS attribute on a specified item.
|
|
53
|
+
*
|
|
54
|
+
* @param callback That receives a map as an argument and should modify it (add or remove entries).
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
export declare function modifyGhsAttribute(writer: ModelWriter, item: ModelItem | ModelDocumentSelection, ghsAttributeName: string, subject: "attributes", callback: ModifyGhsAttributesCallback): void;
|
|
58
58
|
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
export declare function modifyGhsAttribute(writer: ModelWriter, item: ModelItem | ModelDocumentSelection, ghsAttributeName: string, subject:
|
|
59
|
+
* Updates a GHS attribute on a specified item.
|
|
60
|
+
*
|
|
61
|
+
* @param callback That receives a set as an argument and should modify it (add or remove entries).
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
export declare function modifyGhsAttribute(writer: ModelWriter, item: ModelItem | ModelDocumentSelection, ghsAttributeName: string, subject: "classes", callback: ModifyGhsClassesCallback): void;
|
|
65
65
|
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
export declare function modifyGhsAttribute(writer: ModelWriter, item: ModelItem | ModelDocumentSelection, ghsAttributeName: string, subject:
|
|
66
|
+
* Updates a GHS attribute on a specified item.
|
|
67
|
+
* @param callback That receives a map as an argument and should modify it (add or remove entries).
|
|
68
|
+
*/
|
|
69
|
+
export declare function modifyGhsAttribute(writer: ModelWriter, item: ModelItem | ModelDocumentSelection, ghsAttributeName: string, subject: "styles", callback: ModifyGhsStylesCallback): void;
|
|
70
70
|
/**
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
* Strips the `styles`, and `classes` keys from the GHS attribute value on the given item.
|
|
72
|
+
*
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
75
|
export declare function removeFormatting(ghsAttributeName: string, itemRange: ModelRange, writer: ModelWriter): void;
|
|
76
76
|
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
* Transforms passed string to PascalCase format. Examples:
|
|
78
|
+
* * `div` => `Div`
|
|
79
|
+
* * `h1` => `H1`
|
|
80
|
+
* * `table` => `Table`
|
|
81
|
+
*
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
84
|
export declare function toPascalCase(data: string): string;
|
|
85
85
|
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
* Returns the attribute name of the model element that holds raw HTML attributes.
|
|
87
|
+
*
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
90
|
export declare function getHtmlAttributeName(viewElementName: string): string;
|
|
91
91
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-html-support",
|
|
3
|
-
"version": "48.
|
|
3
|
+
"version": "48.3.0-alpha.0",
|
|
4
4
|
"description": "HTML Support feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"./package.json": "./package.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ckeditor/ckeditor5-clipboard": "48.
|
|
34
|
-
"@ckeditor/ckeditor5-core": "48.
|
|
35
|
-
"@ckeditor/ckeditor5-engine": "48.
|
|
36
|
-
"@ckeditor/ckeditor5-enter": "48.
|
|
37
|
-
"@ckeditor/ckeditor5-heading": "48.
|
|
38
|
-
"@ckeditor/ckeditor5-image": "48.
|
|
39
|
-
"@ckeditor/ckeditor5-list": "48.
|
|
40
|
-
"@ckeditor/ckeditor5-remove-format": "48.
|
|
41
|
-
"@ckeditor/ckeditor5-table": "48.
|
|
42
|
-
"@ckeditor/ckeditor5-utils": "48.
|
|
43
|
-
"@ckeditor/ckeditor5-widget": "48.
|
|
33
|
+
"@ckeditor/ckeditor5-clipboard": "48.3.0-alpha.0",
|
|
34
|
+
"@ckeditor/ckeditor5-core": "48.3.0-alpha.0",
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.0",
|
|
36
|
+
"@ckeditor/ckeditor5-enter": "48.3.0-alpha.0",
|
|
37
|
+
"@ckeditor/ckeditor5-heading": "48.3.0-alpha.0",
|
|
38
|
+
"@ckeditor/ckeditor5-image": "48.3.0-alpha.0",
|
|
39
|
+
"@ckeditor/ckeditor5-list": "48.3.0-alpha.0",
|
|
40
|
+
"@ckeditor/ckeditor5-remove-format": "48.3.0-alpha.0",
|
|
41
|
+
"@ckeditor/ckeditor5-table": "48.3.0-alpha.0",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.0",
|
|
43
|
+
"@ckeditor/ckeditor5-widget": "48.3.0-alpha.0",
|
|
44
44
|
"es-toolkit": "1.45.1"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|