@innovastudio/contentbox 1.2.22 → 1.2.23
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
|
@@ -9197,8 +9197,10 @@ class EditBox {
|
|
|
9197
9197
|
let bgcolor = btnBoxBgColor.style.backgroundColor;
|
|
9198
9198
|
let overlay = activeBox.querySelector('.is-overlay');
|
|
9199
9199
|
colorpicker.open(s => {
|
|
9200
|
-
|
|
9201
|
-
|
|
9200
|
+
activeBox.style.backgroundColor = ''; // clean old
|
|
9201
|
+
|
|
9202
|
+
activeBox.style.backgroundImage = ''; /// clean old
|
|
9203
|
+
|
|
9202
9204
|
overlay.style.backgroundColor = s;
|
|
9203
9205
|
overlay.style.backgroundImage = ''; //remove gradient
|
|
9204
9206
|
|
|
@@ -9213,7 +9215,11 @@ class EditBox {
|
|
|
9213
9215
|
|
|
9214
9216
|
let overlay = activeBox.querySelector('.is-overlay');
|
|
9215
9217
|
let gradientPicker = this.builder.editor.gradientpicker();
|
|
9216
|
-
gradientPicker.open(overlay)
|
|
9218
|
+
gradientPicker.open(overlay, () => {
|
|
9219
|
+
activeBox.style.backgroundColor = ''; // clean old
|
|
9220
|
+
|
|
9221
|
+
activeBox.style.backgroundImage = ''; // clean old
|
|
9222
|
+
});
|
|
9217
9223
|
}); // Box Overlay Color
|
|
9218
9224
|
|
|
9219
9225
|
const btnBoxOverlayColor = modalEditBox.querySelector('.input-box-overlaycolor');
|
|
@@ -83794,10 +83800,12 @@ class ContentBox {
|
|
|
83794
83800
|
if (sidebar) sidebar.style.opacity = 1;
|
|
83795
83801
|
this.builderStuff.style.visibility = 'visible'; // Remove the page-overlay
|
|
83796
83802
|
|
|
83797
|
-
|
|
83798
|
-
|
|
83799
|
-
|
|
83800
|
-
|
|
83803
|
+
setTimeout(() => {
|
|
83804
|
+
pageOverlay = builderStuff.querySelectorAll('.page-overlay');
|
|
83805
|
+
pageOverlay.forEach(elm => {
|
|
83806
|
+
elm.parentNode.removeChild(elm);
|
|
83807
|
+
});
|
|
83808
|
+
}, 300);
|
|
83801
83809
|
}); // Add document Click event
|
|
83802
83810
|
|
|
83803
83811
|
document.addEventListener('click', this.doDocumentClick = e => {
|