@innovastudio/contentbuilder 1.5.169 → 1.5.171

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.169",
4
+ "version": "1.5.171",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -15104,12 +15104,20 @@ class HtmlUtil {
15104
15104
  grid = element.querySelector('.grid-sortable');
15105
15105
  }
15106
15106
  element.removeAttribute('id');
15107
+
15108
+ // Clean index in sortable grid
15107
15109
  if (grid) {
15108
15110
  Array.from(grid.children).forEach(elm => {
15109
15111
  elm.removeAttribute('data-index');
15110
15112
  elm.removeAttribute('data-item-id');
15111
15113
  });
15112
15114
  }
15115
+
15116
+ // Clean data-edit-id in editable area
15117
+ let editables = element.querySelectorAll('.edit');
15118
+ editables.forEach(area => {
15119
+ area.removeAttribute('data-edit-id');
15120
+ });
15113
15121
  let elms = element.querySelectorAll('[data-scroll], [data-scroll-once]');
15114
15122
  elms.forEach(elm => {
15115
15123
  elm.removeAttribute('data-scroll');
@@ -58016,6 +58024,7 @@ class ColumnTool {
58016
58024
  }
58017
58025
  click(col) {
58018
58026
  this.columnTool = col.parentNode.querySelector('.is-col-tool');
58027
+ if (!this.columnTool) return;
58019
58028
  this.columnTool.style.left = col.offsetLeft + 'px';
58020
58029
  this.columnTool.style.top = col.offsetTop + 'px';
58021
58030
  const btnAdd = this.columnTool.querySelector('.cell-add');