@innovastudio/contentbuilder 1.4.141 → 1.4.143

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.4.141",
4
+ "version": "1.4.143",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -18282,8 +18282,8 @@ const renderSnippetPanel = (builder, snippetOpen) => {
18282
18282
  obj.destroy();
18283
18283
  }
18284
18284
  });
18285
- if (builder.sortableOnPage) builder.sortableOnPage.destroy();
18286
18285
  }
18286
+ if (builder.sortableOnPage) builder.sortableOnPage.destroy();
18287
18287
  let dummies = builder.doc.querySelectorAll('.block-dummy');
18288
18288
  dummies.forEach(elm => elm.parentNode.removeChild(elm));
18289
18289
  }
@@ -77334,16 +77334,16 @@ class ContentBuilder {
77334
77334
  // Hide element tool
77335
77335
  this.elmTool.hide();
77336
77336
 
77337
- // destroy
77338
- if (this.sortableOnCanvas) {
77339
- this.sortableOnCanvas.forEach(obj => {
77340
- if (obj) {
77341
- obj.destroy();
77342
- }
77343
- });
77344
- let dummies = this.doc.querySelectorAll('.block-dummy');
77345
- dummies.forEach(elm => elm.parentNode.removeChild(elm));
77346
- }
77337
+ // // destroy
77338
+ // if(this.sortableOnCanvas) {
77339
+ // this.sortableOnCanvas.forEach(obj=>{
77340
+ // if(obj) {
77341
+ // obj.destroy();
77342
+ // }
77343
+ // });
77344
+ // let dummies = this.doc.querySelectorAll('.block-dummy');
77345
+ // dummies.forEach(elm=>elm.parentNode.removeChild(elm));
77346
+ // }
77347
77347
 
77348
77348
  // if(this.sortableOnPage) this.sortableOnPage.destroy();
77349
77349
  }
@@ -79989,7 +79989,14 @@ class ContentBuilder {
79989
79989
  sectionDropSetup() {
79990
79990
  if (this.blockContainer) {
79991
79991
  this.sortableOnCanvas = [];
79992
- const boxes = this.doc.querySelectorAll(this.blockContainer);
79992
+ let wrapper;
79993
+ let boxes;
79994
+ if (this.page && this.page === '.is-wrapper') {
79995
+ wrapper = this.doc.querySelector(this.page);
79996
+ boxes = wrapper.querySelectorAll('.is-box.box-canvas');
79997
+ } else {
79998
+ boxes = this.doc.querySelectorAll(this.blockContainer);
79999
+ }
79993
80000
  boxes.forEach(box => {
79994
80001
  box.insertAdjacentHTML('afterbegin', `
79995
80002
  <div class="is-block block-dummy" style="top: calc(97.2707% - 149.797px); left: calc(50% - 222px); width: 444px; height: 154px;z-index:-1000;visibility:hidden">