@innovastudio/contentbox 1.4.14 → 1.4.16

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/contentbox",
3
3
  "type": "module",
4
- "version": "1.4.14",
4
+ "version": "1.4.16",
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.3.12",
49
+ "@innovastudio/contentbuilder": "^1.3.13",
50
50
  "js-beautify": "^1.14.0"
51
51
  }
52
52
  }
@@ -1908,15 +1908,18 @@ class SideBar {
1908
1908
  const wait2 = document.querySelector('.is-waiting2');
1909
1909
  wait2.style.display = 'flex';
1910
1910
 
1911
- renderMegaMenu();
1911
+ // renderMegaMenu();
1912
1912
 
1913
- showDesigns(defaultCat); // If not ready (not loaded yet) will show empty
1913
+ // showDesigns(defaultCat); // If not ready (not loaded yet) will show empty
1914
1914
 
1915
+ let designId = 0;
1915
1916
  loadJsFiles(templateJSON, (template)=>{
1916
1917
  // console.log(template)
1917
1918
  const templateAdded = template_list[template_list.length-1];
1918
1919
  templateAdded.path = template.path;
1919
1920
  templateAdded.pathReplace = template.pathReplace;
1921
+ templateAdded.designId = designId;
1922
+ designId++;
1920
1923
  // console.log(templateAdded);
1921
1924
 
1922
1925
  renderMegaMenu();
@@ -79625,8 +79628,12 @@ class Rte {
79625
79628
  let col = this.builder.activeCol;
79626
79629
  let tool = this.builder.doc.querySelector('.is-column-tool');
79627
79630
  tool.style.display = '';
79628
- tool.style.top = col.getBoundingClientRect().top - 29 + window.pageYOffset + 'px';
79629
- tool.style.left = col.getBoundingClientRect().left - 1 + 'px';
79631
+
79632
+ if (col) {
79633
+ tool.style.top = col.getBoundingClientRect().top - 29 + window.pageYOffset + 'px';
79634
+ tool.style.left = col.getBoundingClientRect().left - 1 + 'px';
79635
+ }
79636
+
79630
79637
  let tools = this.builder.doc.querySelectorAll('.is-row-tool');
79631
79638
  tools.forEach(tool => {
79632
79639
  tool.style.display = '';
@@ -79703,8 +79710,12 @@ class Rte {
79703
79710
  let col = this.builder.activeCol;
79704
79711
  let tool = this.builder.doc.querySelector('.is-column-tool');
79705
79712
  tool.style.display = '';
79706
- tool.style.top = col.getBoundingClientRect().top - 29 + window.pageYOffset + 'px';
79707
- tool.style.left = col.getBoundingClientRect().left - 1 + 'px';
79713
+
79714
+ if (col) {
79715
+ tool.style.top = col.getBoundingClientRect().top - 29 + window.pageYOffset + 'px';
79716
+ tool.style.left = col.getBoundingClientRect().left - 1 + 'px';
79717
+ }
79718
+
79708
79719
  let tools = this.builder.doc.querySelectorAll('.is-row-tool');
79709
79720
  tools.forEach(tool => {
79710
79721
  tool.style.display = '';
@@ -93589,6 +93600,7 @@ class ContentBox {
93589
93600
  useCssClasses: true,
93590
93601
  useButtonPlugin: false,
93591
93602
  enableDragResize: true,
93603
+ simpleTextSettings: true,
93592
93604
 
93593
93605
  /* Old Version (backward compatible) */
93594
93606
  onAddSectionOpen: function () {},
@@ -93881,6 +93893,7 @@ class ContentBox {
93881
93893
  useCssClasses: this.settings.useCssClasses,
93882
93894
  useButtonPlugin: this.settings.useButtonPlugin,
93883
93895
  enableDragResize: this.settings.enableDragResize,
93896
+ simpleTextSettings: this.settings.simpleTextSettings,
93884
93897
  zoom: this.settings.zoom,
93885
93898
  onZoomStart: () => {
93886
93899
  const wrapper = this.wrapperEl; // wrapper.style.transition = 'all ease 0.1s';