@innovastudio/contentbuilder 1.3.74 → 1.3.75
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
@@ -21948,14 +21948,14 @@ const renderSnippetPanel = builder => {
|
|
21948
21948
|
|
21949
21949
|
builder.sectionDropSetup();
|
21950
21950
|
},
|
21951
|
-
onMove:
|
21951
|
+
onMove: () => {
|
21952
21952
|
let emptyinfo = builder.doc.querySelector('.row-add-initial'); // if there is empty info, remove it during snippet drag drop
|
21953
21953
|
// if(emptyinfo) emptyinfo.parentNode.removeChild(emptyinfo);
|
21954
21954
|
|
21955
|
-
if (emptyinfo) emptyinfo.style.display = 'none';
|
21956
|
-
|
21957
|
-
|
21958
|
-
}
|
21955
|
+
if (emptyinfo) emptyinfo.style.display = 'none'; // if(builder.sortableOnPage) if(evt.related.getBoundingClientRect().top<0 ||
|
21956
|
+
// evt.related.getBoundingClientRect().top>window.innerHeight) {
|
21957
|
+
// return false;
|
21958
|
+
// }
|
21959
21959
|
},
|
21960
21960
|
onStart: () => {
|
21961
21961
|
// Remove .builder-active during dragging (because this class makes rows have border-right/left 120px)
|
@@ -76063,6 +76063,8 @@ class ContentBuilder {
|
|
76063
76063
|
if (oldCss) oldCss.parentNode.removeChild(oldCss);
|
76064
76064
|
this.builderStuff.insertAdjacentHTML('afterbegin', newCss);
|
76065
76065
|
}
|
76066
|
+
|
76067
|
+
this.sectionDropSetup(); // enable drop as section (ContentBox)
|
76066
76068
|
},
|
76067
76069
|
onStart: () => {
|
76068
76070
|
this.uo.saveForUndo(); // Even if cancelled, saveForUndo will make sure not to save if there is no change
|
@@ -76071,6 +76073,8 @@ class ContentBuilder {
|
|
76071
76073
|
},
|
76072
76074
|
onEnd: () => {
|
76073
76075
|
this.util.checkEmpty(); // for multiple instances check
|
76076
|
+
|
76077
|
+
if (this.sortableOnPage) this.sortableOnPage.destroy(); // enable drop as section (ContentBox)
|
76074
76078
|
},
|
76075
76079
|
onAdd: evt => {
|
76076
76080
|
var itemEl = evt.item;
|