@innovastudio/contentbuilder 1.5.168 → 1.5.170
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
    
    
| @@ -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');
         | 
| @@ -98297,7 +98306,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler | |
| 98297 98306 | 
             
                                  try {
         | 
| 98298 98307 | 
             
                                    if (spacer) {
         | 
| 98299 98308 | 
             
                                      if (newCol.parentNode.nextElementSibling) {
         | 
| 98300 | 
            -
                                        const elm = newCol.parentNode.nextElementSibling.querySelector('h1,h2,h3,h4,h5,h6,p,img, | 
| 98309 | 
            +
                                        const elm = newCol.parentNode.nextElementSibling.querySelector('h1,h2,h3,h4,h5,h6,p,img,[data-cb-type]');
         | 
| 98301 98310 | 
             
                                        if (elm) elm.click();else newCol.click();
         | 
| 98302 98311 | 
             
                                      }
         | 
| 98303 98312 | 
             
                                    } else {
         |