@ckeditor/ckeditor5-table 44.2.1-alpha.0 → 44.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-table",
3
- "version": "44.2.1-alpha.0",
3
+ "version": "44.3.0-alpha.0",
4
4
  "description": "Table feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,13 +13,13 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "ckeditor5": "44.2.1-alpha.0",
17
- "@ckeditor/ckeditor5-clipboard": "44.2.1-alpha.0",
18
- "@ckeditor/ckeditor5-core": "44.2.1-alpha.0",
19
- "@ckeditor/ckeditor5-engine": "44.2.1-alpha.0",
20
- "@ckeditor/ckeditor5-ui": "44.2.1-alpha.0",
21
- "@ckeditor/ckeditor5-utils": "44.2.1-alpha.0",
22
- "@ckeditor/ckeditor5-widget": "44.2.1-alpha.0",
16
+ "ckeditor5": "44.3.0-alpha.0",
17
+ "@ckeditor/ckeditor5-clipboard": "44.3.0-alpha.0",
18
+ "@ckeditor/ckeditor5-core": "44.3.0-alpha.0",
19
+ "@ckeditor/ckeditor5-engine": "44.3.0-alpha.0",
20
+ "@ckeditor/ckeditor5-ui": "44.3.0-alpha.0",
21
+ "@ckeditor/ckeditor5-utils": "44.3.0-alpha.0",
22
+ "@ckeditor/ckeditor5-widget": "44.3.0-alpha.0",
23
23
  "lodash-es": "4.17.21"
24
24
  },
25
25
  "author": "CKSource (http://cksource.com/)",
@@ -141,6 +141,12 @@ function toTableWidget(viewElement, writer) {
141
141
  * Checks if an element has any attributes set.
142
142
  */
143
143
  function hasAnyAttribute(element) {
144
- const iteratorItem = element.getAttributeKeys().next();
145
- return !iteratorItem.done;
144
+ for (const attributeKey of element.getAttributeKeys()) {
145
+ // Ignore selection attributes stored on block elements.
146
+ if (attributeKey.startsWith('selection:') || attributeKey == 'htmlEmptyBlock') {
147
+ continue;
148
+ }
149
+ return true;
150
+ }
151
+ return false;
146
152
  }