@innovastudio/contentbox 1.5.21 → 1.5.23
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@innovastudio/contentbox",
|
3
|
-
"
|
4
|
-
"version": "1.5.21",
|
3
|
+
"version": "1.5.23",
|
5
4
|
"description": "",
|
6
5
|
"main": "public/contentbox/contentbox.esm.js",
|
7
6
|
"files": [
|
@@ -46,7 +45,7 @@
|
|
46
45
|
"webpack-dev-server": "^4.0.0"
|
47
46
|
},
|
48
47
|
"dependencies": {
|
49
|
-
"@innovastudio/contentbuilder": "^1.4.
|
48
|
+
"@innovastudio/contentbuilder": "^1.4.22",
|
50
49
|
"js-beautify": "^1.14.0"
|
51
50
|
}
|
52
51
|
}
|
@@ -4626,6 +4626,7 @@ class EditSection {
|
|
4626
4626
|
|
4627
4627
|
let boxes = section.querySelectorAll('.is-box');
|
4628
4628
|
boxes.forEach(box => {
|
4629
|
+
box.classList.add('box-autofit');
|
4629
4630
|
let bAlreadyHasMinHeight = false;
|
4630
4631
|
box.classList.forEach(item => {
|
4631
4632
|
if (item.indexOf('min-height') !== -1) {
|
@@ -4633,9 +4634,8 @@ class EditSection {
|
|
4633
4634
|
}
|
4634
4635
|
});
|
4635
4636
|
|
4636
|
-
if (
|
4637
|
-
box.classList.add('
|
4638
|
-
box.classList.add('min-height-50');
|
4637
|
+
if (box.querySelector('.is-overlay-bg')) {
|
4638
|
+
if (!bAlreadyHasMinHeight) box.classList.add('min-height-50');
|
4639
4639
|
}
|
4640
4640
|
});
|
4641
4641
|
}
|
@@ -93613,6 +93613,8 @@ class ContentBuilder {
|
|
93613
93613
|
if (modal) this.hideModal(modal);
|
93614
93614
|
modal = document.querySelector('.is-modal.mediaselect.active');
|
93615
93615
|
if (modal) this.hideModal(modal);
|
93616
|
+
modal = document.querySelector('.is-modal.otherselect.active');
|
93617
|
+
if (modal) this.hideModal(modal);
|
93616
93618
|
}
|
93617
93619
|
}
|
93618
93620
|
|
@@ -93688,7 +93690,7 @@ class ContentBuilder {
|
|
93688
93690
|
});
|
93689
93691
|
} else {
|
93690
93692
|
let iframe;
|
93691
|
-
let modal = this.builderStuff.querySelector('.is-modal.
|
93693
|
+
let modal = this.builderStuff.querySelector('.is-modal.otherselect');
|
93692
93694
|
iframe = modal.querySelector('iframe');
|
93693
93695
|
if (iframe.src === 'about:blank') iframe.src = this.opts.otherSelect;
|
93694
93696
|
this.util.showModal(modal);
|
@@ -94584,12 +94586,15 @@ class ContentBuilder {
|
|
94584
94586
|
let modal1 = document.querySelector('.is-modal.videoselect');
|
94585
94587
|
let modal2 = document.querySelector('.is-modal.imageselect');
|
94586
94588
|
let modal3 = document.querySelector('.is-modal.fileselect');
|
94589
|
+
let modal4 = document.querySelector('.is-modal.otherselect');
|
94587
94590
|
let modalIframe1 = modal1.querySelector('iframe');
|
94588
94591
|
let modalIframe2 = modal2.querySelector('iframe');
|
94589
94592
|
let modalIframe3 = modal3.querySelector('iframe');
|
94593
|
+
let modalIframe4 = modal4.querySelector('iframe');
|
94590
94594
|
if (modalIframe1.contentWindow.applyParentStyles) modalIframe1.contentWindow.applyParentStyles();
|
94591
94595
|
if (modalIframe2.contentWindow.applyParentStyles) modalIframe2.contentWindow.applyParentStyles();
|
94592
94596
|
if (modalIframe3.contentWindow.applyParentStyles) modalIframe3.contentWindow.applyParentStyles();
|
94597
|
+
if (modalIframe4.contentWindow.applyParentStyles) modalIframe4.contentWindow.applyParentStyles();
|
94593
94598
|
}
|
94594
94599
|
|
94595
94600
|
openMedia(elm) {
|