@ckeditor/ckeditor5-html-support 47.2.0 → 47.3.0-alpha.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-html-support",
3
- "version": "47.2.0",
3
+ "version": "47.3.0-alpha.1",
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.2.0",
21
- "@ckeditor/ckeditor5-engine": "47.2.0",
22
- "@ckeditor/ckeditor5-enter": "47.2.0",
23
- "@ckeditor/ckeditor5-heading": "47.2.0",
24
- "@ckeditor/ckeditor5-image": "47.2.0",
25
- "@ckeditor/ckeditor5-list": "47.2.0",
26
- "@ckeditor/ckeditor5-remove-format": "47.2.0",
27
- "@ckeditor/ckeditor5-table": "47.2.0",
28
- "@ckeditor/ckeditor5-utils": "47.2.0",
29
- "@ckeditor/ckeditor5-widget": "47.2.0",
30
- "ckeditor5": "47.2.0",
20
+ "@ckeditor/ckeditor5-core": "47.3.0-alpha.1",
21
+ "@ckeditor/ckeditor5-engine": "47.3.0-alpha.1",
22
+ "@ckeditor/ckeditor5-enter": "47.3.0-alpha.1",
23
+ "@ckeditor/ckeditor5-heading": "47.3.0-alpha.1",
24
+ "@ckeditor/ckeditor5-image": "47.3.0-alpha.1",
25
+ "@ckeditor/ckeditor5-list": "47.3.0-alpha.1",
26
+ "@ckeditor/ckeditor5-remove-format": "47.3.0-alpha.1",
27
+ "@ckeditor/ckeditor5-table": "47.3.0-alpha.1",
28
+ "@ckeditor/ckeditor5-utils": "47.3.0-alpha.1",
29
+ "@ckeditor/ckeditor5-widget": "47.3.0-alpha.1",
30
+ "ckeditor5": "47.3.0-alpha.1",
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')) {