@innovastudio/contentbuilder 1.4.36 → 1.4.37

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.36",
4
+ "version": "1.4.37",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -77526,7 +77526,10 @@ class LivePreview {
77526
77526
  if (!container) container = iframeDocument.querySelector('.is-container');
77527
77527
 
77528
77528
  if (container) {
77529
- container.innerHTML = html;
77529
+ // container.innerHTML = html;
77530
+ let range = this.doc.createRange();
77531
+ container.innerHTML = '';
77532
+ container.appendChild(range.createContextualFragment(html));
77530
77533
  } else {
77531
77534
  iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
77532
77535
  }
@@ -77567,8 +77570,11 @@ class LivePreview {
77567
77570
  } else {
77568
77571
  // sync. html
77569
77572
  let html = localStorage.getItem('preview-html');
77570
- let wrapper = iframeDocument.querySelector('.is-wrapper');
77571
- wrapper.innerHTML = html; // sync. styles
77573
+ let wrapper = iframeDocument.querySelector('.is-wrapper'); // wrapper.innerHTML = html;
77574
+
77575
+ let range = this.doc.createRange();
77576
+ wrapper.innerHTML = '';
77577
+ wrapper.appendChild(range.createContextualFragment(html)); // sync. styles
77572
77578
  // let mainCss = localStorage.getItem('preview-maincss');
77573
77579
  // let sectionCss = localStorage.getItem('preview-sectioncss');
77574
77580