@innovastudio/contentbox 1.5.47 → 1.5.49

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.5.47",
4
+ "version": "1.5.49",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -46,7 +46,7 @@
46
46
  "webpack-dev-server": "^4.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@innovastudio/contentbuilder": "^1.4.36",
49
+ "@innovastudio/contentbuilder": "^1.4.39",
50
50
  "js-beautify": "^1.14.0"
51
51
  }
52
52
  }
@@ -73746,7 +73746,9 @@ class ColumnTool {
73746
73746
  <label for="inpCellImageBgSource" style="display:block">${util.out('Source')}:</label>
73747
73747
  <div class="image-src">
73748
73748
  <input id="inpCellImageBgSource" class="input-src" type="text">
73749
- <button title="${util.out('Select')}" class="input-select" style="flex:none;"><svg class="is-icon-flex"><use xlink:href="#ion-more"></use></svg></button>
73749
+ <button title="${util.out('Select')}" class="input-select" style="flex:none;">
73750
+ ${this.builder.opts.selectIcon}
73751
+ </button>
73750
73752
  <div class="image-larger3 input-upload" style="position: relative; flex: 0 0 auto;box-shadow: rgba(0, 0, 0, 0.32) 0px 3px 6px -6px;">
73751
73753
  <form class="form-upload-larger" target="frameTargetCellImageUpload" method="post" action="${this.builder.opts.largerImageHandler}" enctype="multipart/form-data" style="position:absolute;display:flex;justify-content: center;align-items: center;top:0;left:0;width:100%;height:100%;">
73752
73754
  <input id="hidRefId3" name="hidRefId" type="hidden" value="">
@@ -76424,7 +76426,9 @@ class ElementGeneralStyles {
76424
76426
  <svg class="is-icon-flex"><use xlink:href="#ion-image"></use></svg>
76425
76427
  <span style="margin-left: 5px;">${util.out('Image')}</span>
76426
76428
  </button>
76427
- <button title="${util.out('Select')}" class="input-select"><svg class="is-icon-flex"><use xlink:href="#ion-more"></use></svg></button>
76429
+ <button title="${util.out('Select')}" class="input-select">
76430
+ ${this.builder.opts.selectIcon}
76431
+ </button>
76428
76432
  <button title="${util.out('Remove')}" class="input-elm-bgremove"><svg class="is-icon-flex" style="width:11px;height:11px;"><use xlink:href="#icon-clean"></use></svg></button>
76429
76433
  <button title="${util.out('Adjust')}" class="input-elm-bgimageadjust" style="width:40px"><svg class="is-icon-flex" style="width:13px;height:13px;flex:none"><use xlink:href="#ion-wrench"></use></svg></button>
76430
76434
  </div>
@@ -91955,7 +91959,10 @@ class LivePreview {
91955
91959
  if (!container) container = iframeDocument.querySelector('.is-container');
91956
91960
 
91957
91961
  if (container) {
91958
- container.innerHTML = html;
91962
+ // container.innerHTML = html;
91963
+ let range = this.builder.doc.createRange();
91964
+ container.innerHTML = '';
91965
+ container.appendChild(range.createContextualFragment(html));
91959
91966
  } else {
91960
91967
  iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
91961
91968
  }
@@ -91996,8 +92003,11 @@ class LivePreview {
91996
92003
  } else {
91997
92004
  // sync. html
91998
92005
  let html = localStorage.getItem('preview-html');
91999
- let wrapper = iframeDocument.querySelector('.is-wrapper');
92000
- wrapper.innerHTML = html; // sync. styles
92006
+ let wrapper = iframeDocument.querySelector('.is-wrapper'); // wrapper.innerHTML = html;
92007
+
92008
+ let range = this.builder.doc.createRange();
92009
+ wrapper.innerHTML = '';
92010
+ wrapper.appendChild(range.createContextualFragment(html)); // sync. styles
92001
92011
  // let mainCss = localStorage.getItem('preview-maincss');
92002
92012
  // let sectionCss = localStorage.getItem('preview-sectioncss');
92003
92013