@innovastudio/contentbox 1.0.55 → 1.0.56

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "",
5
5
  "main": "public/contentbox/contentbox.esm.js",
6
6
  "files": [
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@ashthornton/asscroll": "^2.0.4",
42
- "@innovastudio/contentbuilder": "^1.0.73",
42
+ "@innovastudio/contentbuilder": "^1.0.74",
43
43
  "axios": "^0.21.4",
44
44
  "cors": "^2.8.5",
45
45
  "express": "^4.17.1",
@@ -9332,6 +9332,14 @@ class EditBox {
9332
9332
  }
9333
9333
  }
9334
9334
 
9335
+ modalEditBox.querySelector('#chkOptimizeTextSize').checked = false;
9336
+
9337
+ if (container) {
9338
+ if (dom$G.hasClass(container, 'v2')) {
9339
+ modalEditBox.querySelector('#chkOptimizeTextSize').checked = true;
9340
+ }
9341
+ }
9342
+
9335
9343
  dom$G.addClass(activeBox, 'box-active');
9336
9344
  this.builder.showModal(modalEditBox);
9337
9345
  const inpBoxSize = modalEditBox.querySelector('.inp-box-size');
@@ -63036,7 +63044,13 @@ class Rte {
63036
63044
  html_iconrte = html_iconrte + `<button title="${util.out('More')}" class="rte-more"><svg class="is-icon-flex" style="width:13px;height:13px;"><use xlink:href="#ion-more"></use></svg></button>`;
63037
63045
  }
63038
63046
  /* /Icon Buttons */
63039
- // <div class="is-draggable" style="width: 5px;height: 45pxpx;background:#fff;cursor: move;"></div>
63047
+
63048
+
63049
+ let html_fontsizes = '';
63050
+
63051
+ for (j = 0; j < builder.opts.defaultFontSizes.length; j++) {
63052
+ html_fontsizes += `<button title="${builder.opts.defaultFontSizes[j]}px" data-value="${builder.opts.defaultFontSizes[j]}">${builder.opts.defaultFontSizes[j]}</button>`;
63053
+ } // <div class="is-draggable" style="width: 5px;height: 45pxpx;background:#fff;cursor: move;"></div>
63040
63054
  // <div style="height:55px;background:#fff;border-top:#f5f5f5 1px solid;">
63041
63055
  // </div>
63042
63056
 
@@ -63111,23 +63125,7 @@ class Rte {
63111
63125
  <div>
63112
63126
  <div class="is-label">${util.out('Font Size')}</div>
63113
63127
  <div class="rte-fontsize-options" style="display: flex;flex-flow: wrap;">
63114
- <button title="14px" data-value="14">14</button>
63115
- <button title="16px" data-value="16">16</button>
63116
- <button title="18px" data-value="18">18</button>
63117
- <button title="21px" data-value="21">21</button>
63118
- <button title="24px" data-value="24">24</button>
63119
- <!--<button title="28px" data-value="28">28</button>-->
63120
- <button title="32px" data-value="32">32</button>
63121
- <!--<button title="38px" data-value="38">38</button>-->
63122
- <button title="48px" data-value="48">48</button>
63123
- <!--<button title="60px" data-value="60">60</button>-->
63124
- <button title="76px" data-value="76">76</button>
63125
- <button title="96px" data-value="96">96</button>
63126
-
63127
- <button title="120px" data-value="120">120</button>
63128
- <!--<button title="160px" data-value="160">160</button>-->
63129
- <button title="200px" data-value="200">200</button>
63130
- <button title="300px" data-value="300">300</button>
63128
+ ${html_fontsizes}
63131
63129
 
63132
63130
  <button title="${util.out('Decrease')}" data-value="-" style="font-size:13px">-</button>
63133
63131
  <button title="${util.out('Increase')}" data-value="+" style="font-size:13px">+</button>
@@ -67845,6 +67843,7 @@ class ContentBuilder {
67845
67843
  clearPreferences: false,
67846
67844
  toolbarAddSnippetButton: false,
67847
67845
  animateModal: true,
67846
+ defaultFontSizes: [16, 17, 18, 19, 24, 32, 48, 76, 96, 120, 200, 300],
67848
67847
  fontSizeClassValues: [12, 14, 15, 16, 17, 18, 19, 21, 24, 28, 32, 35, 38, 42, 46, 48, 50, 54, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 148, 152, 156, 160, 164, 168, 172, 176, 180, 184, 188, 192, 196, 200, 204, 208, 212, 216, 220, 224, 228, 232, 236, 240, 244, 248, 252, 256, 260, 264, 268, 272, 276, 280, 284, 288, 292, 296, 300, 304, 308, 312, 316, 320, 324, 328, 332, 336, 340, 344, 348, 352, 356, 360, 364, 368, 372, 376, 380, 384, 388, 392, 396, 400],
67849
67848
 
67850
67849
  /* If not empty, applying font size will apply class: size-12, size-14, and so on. All responsive, defined in content.css */