@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/dist/index.js CHANGED
@@ -1077,8 +1077,14 @@ import { isObject, debounce, isEqual, throttle } from 'lodash-es';
1077
1077
  /**
1078
1078
  * Checks if an element has any attributes set.
1079
1079
  */ function hasAnyAttribute(element) {
1080
- const iteratorItem = element.getAttributeKeys().next();
1081
- return !iteratorItem.done;
1080
+ for (const attributeKey of element.getAttributeKeys()){
1081
+ // Ignore selection attributes stored on block elements.
1082
+ if (attributeKey.startsWith('selection:') || attributeKey == 'htmlEmptyBlock') {
1083
+ continue;
1084
+ }
1085
+ return true;
1086
+ }
1087
+ return false;
1082
1088
  }
1083
1089
 
1084
1090
  /**