@innovastudio/contentbuilder 1.4.21 → 1.4.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.4.21",
4
+ "version": "1.4.23",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -5690,7 +5690,8 @@ class Util {
5690
5690
 
5691
5691
  localStorage.removeItem('_htmlview');
5692
5692
  localStorage.removeItem('_pasteresult'); //DON'T HAVE PROP
5693
- //NOT USED
5693
+
5694
+ localStorage.removeItem('_livepreview'); //NOT USED
5694
5695
 
5695
5696
  localStorage.removeItem('_scrollableeditor');
5696
5697
  localStorage.removeItem('_animatedsorting');
@@ -79240,6 +79241,8 @@ class ContentBuilder {
79240
79241
  if (modal) this.hideModal(modal);
79241
79242
  modal = document.querySelector('.is-modal.mediaselect.active');
79242
79243
  if (modal) this.hideModal(modal);
79244
+ modal = document.querySelector('.is-modal.otherselect.active');
79245
+ if (modal) this.hideModal(modal);
79243
79246
  }
79244
79247
  }
79245
79248
 
@@ -79315,7 +79318,7 @@ class ContentBuilder {
79315
79318
  });
79316
79319
  } else {
79317
79320
  let iframe;
79318
- let modal = this.builderStuff.querySelector('.is-modal.fileselect');
79321
+ let modal = this.builderStuff.querySelector('.is-modal.otherselect');
79319
79322
  iframe = modal.querySelector('iframe');
79320
79323
  if (iframe.src === 'about:blank') iframe.src = this.opts.otherSelect;
79321
79324
  this.util.showModal(modal);
@@ -80211,12 +80214,15 @@ class ContentBuilder {
80211
80214
  let modal1 = document.querySelector('.is-modal.videoselect');
80212
80215
  let modal2 = document.querySelector('.is-modal.imageselect');
80213
80216
  let modal3 = document.querySelector('.is-modal.fileselect');
80217
+ let modal4 = document.querySelector('.is-modal.otherselect');
80214
80218
  let modalIframe1 = modal1.querySelector('iframe');
80215
80219
  let modalIframe2 = modal2.querySelector('iframe');
80216
80220
  let modalIframe3 = modal3.querySelector('iframe');
80221
+ let modalIframe4 = modal4.querySelector('iframe');
80217
80222
  if (modalIframe1.contentWindow.applyParentStyles) modalIframe1.contentWindow.applyParentStyles();
80218
80223
  if (modalIframe2.contentWindow.applyParentStyles) modalIframe2.contentWindow.applyParentStyles();
80219
80224
  if (modalIframe3.contentWindow.applyParentStyles) modalIframe3.contentWindow.applyParentStyles();
80225
+ if (modalIframe4.contentWindow.applyParentStyles) modalIframe4.contentWindow.applyParentStyles();
80220
80226
  }
80221
80227
 
80222
80228
  openMedia(elm) {