@ckeditor/ckeditor5-html-support 47.2.0-alpha.7 → 47.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/LICENSE.md +4 -4
- package/build/html-support.js +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/src/integrations/customelement.js +2 -0
- package/src/integrations/table.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-html-support",
|
|
3
|
-
"version": "47.
|
|
3
|
+
"version": "47.3.0-alpha.0",
|
|
4
4
|
"description": "HTML Support feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"main": "src/index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ckeditor/ckeditor5-core": "47.
|
|
21
|
-
"@ckeditor/ckeditor5-engine": "47.
|
|
22
|
-
"@ckeditor/ckeditor5-enter": "47.
|
|
23
|
-
"@ckeditor/ckeditor5-heading": "47.
|
|
24
|
-
"@ckeditor/ckeditor5-image": "47.
|
|
25
|
-
"@ckeditor/ckeditor5-list": "47.
|
|
26
|
-
"@ckeditor/ckeditor5-remove-format": "47.
|
|
27
|
-
"@ckeditor/ckeditor5-table": "47.
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "47.
|
|
29
|
-
"@ckeditor/ckeditor5-widget": "47.
|
|
30
|
-
"ckeditor5": "47.
|
|
20
|
+
"@ckeditor/ckeditor5-core": "47.3.0-alpha.0",
|
|
21
|
+
"@ckeditor/ckeditor5-engine": "47.3.0-alpha.0",
|
|
22
|
+
"@ckeditor/ckeditor5-enter": "47.3.0-alpha.0",
|
|
23
|
+
"@ckeditor/ckeditor5-heading": "47.3.0-alpha.0",
|
|
24
|
+
"@ckeditor/ckeditor5-image": "47.3.0-alpha.0",
|
|
25
|
+
"@ckeditor/ckeditor5-list": "47.3.0-alpha.0",
|
|
26
|
+
"@ckeditor/ckeditor5-remove-format": "47.3.0-alpha.0",
|
|
27
|
+
"@ckeditor/ckeditor5-table": "47.3.0-alpha.0",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "47.3.0-alpha.0",
|
|
29
|
+
"@ckeditor/ckeditor5-widget": "47.3.0-alpha.0",
|
|
30
|
+
"ckeditor5": "47.3.0-alpha.0",
|
|
31
31
|
"es-toolkit": "1.39.5"
|
|
32
32
|
},
|
|
33
33
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -61,6 +61,7 @@ export class CustomElementSupport extends Plugin {
|
|
|
61
61
|
if (viewElement.name == '$comment') {
|
|
62
62
|
return null;
|
|
63
63
|
}
|
|
64
|
+
/* istanbul ignore next -- @preserve */
|
|
64
65
|
if (!isValidElementName(viewElement.name)) {
|
|
65
66
|
return null;
|
|
66
67
|
}
|
|
@@ -156,6 +157,7 @@ function isValidElementName(name) {
|
|
|
156
157
|
document.createElement(name);
|
|
157
158
|
}
|
|
158
159
|
catch {
|
|
160
|
+
/* istanbul ignore next -- @preserve */
|
|
159
161
|
return false;
|
|
160
162
|
}
|
|
161
163
|
return true;
|
|
@@ -109,6 +109,8 @@ function viewToModelTableAttributeConverter(dataFilter) {
|
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
111
|
const viewTableElement = data.viewItem;
|
|
112
|
+
// Prevent `table` class on both <table> and <figure> elements simultaneously.
|
|
113
|
+
conversionApi.consumable.consume(viewTableElement, { classes: 'table' });
|
|
112
114
|
preserveElementAttributes(viewTableElement, 'htmlTableAttributes');
|
|
113
115
|
for (const childNode of viewTableElement.getChildren()) {
|
|
114
116
|
if (childNode.is('element', 'thead')) {
|