@innovastudio/contentbox 1.5.34 → 1.5.36
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -104636,7 +104636,9 @@ class ContentBox {
|
|
104636
104636
|
zoom: 0.6,
|
104637
104637
|
shortenHTML: true,
|
104638
104638
|
advancedTimeline: true,
|
104639
|
+
previewStyle: 'top:auto;bottom:30px;left:90px;right:auto;',
|
104639
104640
|
livePreviewOpen: false,
|
104641
|
+
livePreviewAlwaysReload: false,
|
104640
104642
|
sectionTemplate: `
|
104641
104643
|
<div class="is-section is-box is-section-100 type-poppins">
|
104642
104644
|
<div class="is-overlay"></div>
|
@@ -107152,8 +107154,9 @@ class ContentBox {
|
|
107152
107154
|
this.scrollSync(iframe);
|
107153
107155
|
}, 1000);
|
107154
107156
|
},
|
107155
|
-
previewStyle:
|
107156
|
-
livePreviewOpen:
|
107157
|
+
previewStyle: this.settings.previewStyle,
|
107158
|
+
livePreviewOpen: this.settings.livePreviewOpen,
|
107159
|
+
livePreviewAlwaysReload: this.settings.livePreviewAlwaysReload,
|
107157
107160
|
iframe: this.settings.iframe,
|
107158
107161
|
imageAdjust: 1,
|
107159
107162
|
// ContentBuilder
|
@@ -107423,6 +107426,7 @@ class ContentBox {
|
|
107423
107426
|
}); // Live Preview
|
107424
107427
|
|
107425
107428
|
const modalPagePreview = this.builderStuff.querySelector('.is-modal.content-preview');
|
107429
|
+
this.modalPagePreview = modalPagePreview;
|
107426
107430
|
const iframe = modalPagePreview.querySelector('iframe');
|
107427
107431
|
this.win.addEventListener('scroll', this.doScrollSync = () => {
|
107428
107432
|
this.scrollSync(iframe);
|
@@ -107433,8 +107437,7 @@ class ContentBox {
|
|
107433
107437
|
|
107434
107438
|
|
107435
107439
|
scrollSync(iframe) {
|
107436
|
-
|
107437
|
-
if (!modalPagePreview.classList.contains('active')) return;
|
107440
|
+
if (!this.modalPagePreview.classList.contains('active')) return;
|
107438
107441
|
if (this.cancelScrollSync) return;
|
107439
107442
|
|
107440
107443
|
try {
|