@innovastudio/contentbox 1.4.9 → 1.4.10

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.9",
4
+ "version": "1.4.10",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -9863,9 +9863,10 @@ class EditBox {
9863
9863
  html += '<div id="divContentSize">' + '<div style="padding-top:20px;padding-bottom: 3px;">' + out('Content Size') + ': &nbsp;<span class="val-box-size" style="font-size:12px"></span></div>' + '<div style="display: flex;flex-direction: row;flex-wrap: wrap;">' + '<input class="inp-box-size" type="text" style="display:none;width:80px;height:35px;text-align:center;font-size:12px;" />' + '<button class="cmd-box-size" data-value="500" style="width:40px;border-left:none">500</button>' + '<button class="cmd-box-size" data-value="600" style="width:40px;border-left:none">600</button>' + '<button class="cmd-box-size" data-value="700" style="width:40px;border-left:none">700</button>' + '<button class="cmd-box-size" data-value="800" style="width:40px;border-top:none">800</button>' + '<button class="cmd-box-size" data-value="900" style="width:40px;border-top:none">900</button>' + '<button class="cmd-box-size" data-value="1000" style="width:40px;border-top:none;border-left:none">1000</button>' + '<button class="cmd-box-size" data-value="1100" style="width:40px;border-top:none;border-left:none">1100</button>' + '<button class="cmd-box-size" data-value="1200" style="width:40px;border-top:none;border-left:none">1200</button>' + '<button class="cmd-box-size" data-value="1300" style="width:40px;border-top:none;border-left:none">1300</button>' + '<button class="cmd-box-size" data-value="1400" style="width:40px;border-top:none;border-left:none">1400</button>' + '<button class="cmd-box-size" data-value="1500" style="width:40px;border-top:none;border-left:none">1500</button>' + '<button class="cmd-box-size" data-value="1600" style="width:40px;border-top:none;border-left:none">1600</button>' + '<button class="cmd-box-size" data-value="1800" style="width:40px;border-top:none;border-left:none">1800</button>' + '<button title="' + out('Clear') + '" class="cmd-box-size" data-value=""><svg class="is-icon-flex" style="width:10px;height:10px;"><use xlink:href="#icon-clean"></use></svg></button>' + '<button title="' + out('Decrease') + '" class="cmd-box-size" data-value="-" style="width:40px;border-top:none;border-left:none">-</button>' + '<button title="' + out('Increase') + '"class="cmd-box-size" data-value="+" style="width:40px;border-top:none;border-left:none">+</button>' + '<br style="clear:both">' + '</div>' + '</div>';
9864
9864
  html += '<div id="divBoxBackgroundColor">' + '<div style="padding-top:20px;padding-bottom: 3px;">' + out('Background Color') + ':</div>' + '<div style="display:flex;">' + '<button title="' + out('Background Color') + '" class="input-box-bgcolor is-btn-color" style="margin-right:15px"></button>' + '<button title="' + out('Gradient') + '" class="input-box-gradient classic" data-value="+">' + out('Gradient') + '</button>' + '</div>' + '<div style="padding-top:20px;padding-bottom: 3px;">' + out('Background Image') + ':</div>' + '<div style="height:auto">' + '<div style="display:flex;align-items:flex-end;">' + '<div class="box-bgimage-preview"></div>' + '<label class="label-box-bgimage-grayscale label-checkbox" for="chkBoxBgImageGrayscale" style="margin:0;margin-left:8px;margin-bottom:5px;"><input id="chkBoxBgImageGrayscale" class="chk-box-bgimage-grayscale" type="checkbox" /> ' + out('Grayscale') + '</label>' + '</div>' + '<div style="display:flex;align-items: flex-end;">' + '<button title="' + out('Image') + '" class="input-box-bgimage">' + '<svg class="is-icon-flex"><use xlink:href="#ion-image"></use></svg>' + '<span>' + out('Image') + '</span>' + '</button>' + '<button title="' + out('Remove') + '" class="input-box-bgremove"><svg class="is-icon-flex" style="width:11px;height:11px;"><use xlink:href="#icon-clean"></use></svg></button>' + '<button title="' + out('Adjust') + '" class="input-box-bgimageadjust"><svg class="is-icon-flex"><use xlink:href="#ion-wrench"></use></svg></button>' + '</div>' + '</div>' + '</div>' + '<div id="divBoxPickPhoto" class="is-settings" style="padding-top:20px">' + '<button class="cmd-box-pickphoto" data-value="" style="width:100%"><svg class="is-icon-flex" style=""><use xlink:href="#ion-image"></use></svg></button>' + '</div>' + '<div style="display:flex;justify-content:flex-end;">' + '<button title="' + out('Add Text') + '" class="cmd-box-addtext" style="display:none;margin-top:20px;"><svg class="is-icon-flex" style="width:11px;height:11px;"><use xlink:href="#ion-android-add"></use></svg> <span>' + out('Text') + '</span></button>' + '<button title="' + out('Remove Text') + '" class="cmd-box-removetext" style="display:none;margin-top:20px;"><svg class="is-icon-flex" style="width:11px;height:11px;"><use xlink:href="#icon-clean"></use></svg> <span>' + out('Clear') + '</span></button>' + '</div>' + '<p id="divNoBoxSettings" style="text-align: center;display:none;">' + out('This box has no available settings.') + '</p>' + '</div>';
9865
9865
  html += '<div id="divBoxClick" class="is-tab-content" data-group="boxsettings" style="padding-top:0">' + '<label for="inpBoxLinkSource" style="display:block;padding-top:20px;">' + out('Open') + ':</label>' + '<div class="image-src" style="display:flex">' + '<input id="inpBoxLinkSource" class="input-src" type="text" style="height:38px">' + '<button title="' + out('Select') + '" class="input-select" style="flex:none;width:40px;height:38px;background:transparent;"><svg class="is-icon-flex"><use xlink:href="#ion-more"></use></svg></button>' + '<div class="image-larger5" style="position: relative; flex: 0 0 auto; width: 40px; height: 38px; box-shadow: rgba(0, 0, 0, 0.32) 0px 3px 6px -6px;">' + '<form class="form-upload-larger" target="frameTargetBoxLinkUpload" method="post" action="' + this.builder.largerImageHandler + '" enctype="multipart/form-data" style="position:absolute;top:0;left:0;width:100%;height:100%;">' + '<input id="hidRefId5_box" name="hidRefId" type="hidden" value="">' + '<svg class="is-icon-flex" style="position: absolute;top: 10px;left: 15px;"><use xlink:href="#ion-image"></use></svg>' + '<input title="' + out('Select') + '" id="fileImage5" name="fileImage" type="file" accept="image/*,video/mp4" style="position:absolute;top:-30px;left:0;width:100%;height:80px;opacity: 0;cursor: pointer;">' + '</form>' + '<iframe id="frameTargetBoxLinkUpload" tabindex="-1" name="frameTargetBoxLinkUpload" src="about:blank" style="width:1px;height:1px;position:absolute;top:0;right:-100000px"></iframe>' + '</div>' + '</div>' + '<div style="padding-top:20px">' + '<button class="cmd-box-testclick">' + out('Test') + '</button>' + '</div>' + '</div>';
9866
- html += '<div id="divBoxContentText" class="is-tab-content" data-group="boxsettings" style="padding-top:0">' + '<div style="display:flex;flex-direction: column;">' + '<div style="padding-top:20px;padding-bottom: 3px;">' + out('Text Style') + ':</div>' + '<div style="display:flex">' + '<button title="' + out('Light') + '" class="cmd-box-textcolor" data-value="light">' + out('Light') + '</button>' + '<button title="' + out('Dark') + '" class="cmd-box-textcolor" data-value="dark" style="border-left:none;">' + out('Dark') + '</button>' + '<button title="' + out('Not Set') + '" class="cmd-box-textcolor" data-value="" style="border-left:none;">' + out('Not Set') + '</button>' + '<br style="clear:both">' + '</div>' + '</div>' + '<div style="padding-top:20px;">' + '<label for="chkOptimizeTextSize" style="margin:0;"><input id="chkOptimizeTextSize" type="checkbox" /> ' + out('Optimize text sizes on large screen.') + '</label>' + '</div>';
9867
- html += '<div id="divContainerTransparency" style="display:flex;flex-direction: column;">' + '<div style="padding-top:20px;padding-bottom: 3px;">' + out('Transparency') + ':</div>' + '<div style="display:flex">' + '<button title="' + out('Increase') + '" class="cmd-box-textopacity" data-value="+" style="width:40px"> + </button>' + '<button title="' + out('Decrease') + '" class="cmd-box-textopacity" data-value="-" style="width:40px;border-left:none;"> - </button>' + '<button title="' + out('Not Set') + '" class="cmd-box-textopacity" data-value="" style="border-left:none;">' + out('Not Set') + '</button>' + '<br style="clear:both">' + '</div>' + '</div>' + '<div id="divContainerTextAlign" style="display:flex;flex-direction: column;">' + '<div style="padding-top:20px;padding-bottom: 3px;">Align:</div>' + '<div style="display:flex">' + '<button title="' + out('Align Left') + '" class="cmd-box-textalign" data-value="left" style="width:40px"><svg class="is-icon-flex" style="fill:rgba(0, 0, 0, 0.8);width:13px;height:13px;"><use xlink:href="#icon-align-left"></use></svg></button>' + '<button title="' + out('Align Center') + '" class="cmd-box-textalign" data-value="center" style="width:40px;border-left:none;"><svg class="is-icon-flex" style="fill:rgba(0, 0, 0, 0.8);width:13px;height:13px;"><use xlink:href="#icon-align-center"></use></svg></button>' + '<button title="' + out('Align Right') + '" class="cmd-box-textalign" data-value="right" style="width:40px;border-left:none;"><svg class="is-icon-flex" style="fill:rgba(0, 0, 0, 0.8);width:13px;height:13px;"><use xlink:href="#icon-align-right"></use></svg></button>' + '<button title="' + out('Align Full') + '" class="cmd-box-textalign" data-value="justify" style="width:40px;border-left:none;"><svg class="is-icon-flex" style="fill:rgba(0, 0, 0, 0.8);width:13px;height:13px;"><use xlink:href="#icon-align-full"></use></svg></button>' + '<button title="' + out('Not Set') + '" class="cmd-box-textalign" data-value="" style="border-left:none;">' + out('Not Set') + '</button>' + '<br style="clear:both">' + '</div>' + '</div>';
9868
- html += (this.builder.settings.enableContentStyle ? '<div style="display:flex;flex-direction: column;">' + '<div style="padding-top:20px;padding-bottom: 3px;">' + out('Typography') + ':</div>' + '<div style="display:flex">' + '<button title="' + out('Change Style') + '" class="cmd-box-typography" data-value="+"> ' + out('Change Style') + ' </button>' + '<br style="clear:both">' + '</div>' + '</div>' : '') + '</div>' + '<div id="divBoxContentContainer" class="is-tab-content" data-group="boxsettings" style="padding-top:0">' + '<div style="padding-top:10px;">' + '<label for="chkParallaxContent" style="margin:0;"><input id="chkParallaxContent" type="checkbox" /> ' + out('Parallax') + '</label>' + '</div>' + '<div style="padding-top:10px;">' + '<label for="chkFadeContent" style="margin:0;"><input id="chkFadeContent" type="checkbox" /> ' + out('Fade') + '</label>' + '</div>';
9866
+ html += '<div id="divBoxContentText" class="is-tab-content" data-group="boxsettings" style="padding-top:0">' + '<div style="display:flex;flex-direction: column;">' + '<div style="padding-top:20px;padding-bottom: 3px;">' + out('Text Style') + ':</div>' + '<div style="display:flex">' + '<button title="' + out('Light') + '" class="cmd-box-textcolor" data-value="light">' + out('Light') + '</button>' + '<button title="' + out('Dark') + '" class="cmd-box-textcolor" data-value="dark" style="border-left:none;">' + out('Dark') + '</button>' + '<button title="' + out('Not Set') + '" class="cmd-box-textcolor" data-value="" style="border-left:none;">' + out('Not Set') + '</button>' + '</div>' + '</div>';
9867
+ html += '<div id="divContainerTransparency" style="display:flex;flex-direction: column;">' + '<div style="padding-top:20px;padding-bottom: 3px;">' + out('Transparency') + ':</div>' + '<div style="display:flex">' + '<button title="' + out('Increase') + '" class="cmd-box-textopacity" data-value="+" style="width:40px"> + </button>' + '<button title="' + out('Decrease') + '" class="cmd-box-textopacity" data-value="-" style="width:40px;border-left:none;"> - </button>' + '<button title="' + out('Not Set') + '" class="cmd-box-textopacity" data-value="" style="border-left:none;">' + out('Not Set') + '</button>' + '</div>' + '</div>' + '<div style="padding-top:27px;">' + out('Default Text Formatting') + ':</div>' + '<div id="divContainerTextAlign" style="display:flex;flex-direction: column;">' + '<div style="padding-top:15px;padding-bottom: 3px;">' + out('Alignment') + ':</div>' + '<div style="display:flex">' + '<button title="' + out('Align Left') + '" class="cmd-box-textalign" data-value="left" style="width:40px"><svg class="is-icon-flex" style="fill:rgba(0, 0, 0, 0.8);width:13px;height:13px;"><use xlink:href="#icon-align-left"></use></svg></button>' + '<button title="' + out('Align Center') + '" class="cmd-box-textalign" data-value="center" style="width:40px;border-left:none;"><svg class="is-icon-flex" style="fill:rgba(0, 0, 0, 0.8);width:13px;height:13px;"><use xlink:href="#icon-align-center"></use></svg></button>' + '<button title="' + out('Align Right') + '" class="cmd-box-textalign" data-value="right" style="width:40px;border-left:none;"><svg class="is-icon-flex" style="fill:rgba(0, 0, 0, 0.8);width:13px;height:13px;"><use xlink:href="#icon-align-right"></use></svg></button>' + '<button title="' + out('Align Full') + '" class="cmd-box-textalign" data-value="justify" style="width:40px;border-left:none;"><svg class="is-icon-flex" style="fill:rgba(0, 0, 0, 0.8);width:13px;height:13px;"><use xlink:href="#icon-align-full"></use></svg></button>' + '<button title="' + out('Not Set') + '" class="cmd-box-textalign" data-value="" style="border-left:none;">' + out('Not Set') + '</button>' + '</div>' + '</div>' + '<div id="divContainerParagraphSize" style="display:flex;flex-direction: column;">' + '<div style="padding-top:15px;padding-bottom: 3px;">Paragraph Size:</div>' + '<div style="display:flex">' + '<button title="' + out('16') + '" class="cmd-box-parasize" data-value="16" style="width:40px">16</button>' + '<button title="' + out('17') + '" class="cmd-box-parasize" data-value="17" style="width:40px">17</button>' + '<button title="' + out('18') + '" class="cmd-box-parasize" data-value="18" style="width:40px">18</button>' + '<button title="' + out('19') + '" class="cmd-box-parasize" data-value="19" style="width:40px">19</button>' + '<button title="' + out('20') + '" class="cmd-box-parasize" data-value="20" style="width:40px">20</button>' + '<button title="' + out('21') + '" class="cmd-box-parasize" data-value="21" style="width:40px">21</button>' + '<button title="' + out('Not Set') + '" class="cmd-box-parasize" data-value="" style="">' + out('Not Set') + '</button>' + '</div>' + '</div>' + '<div style="padding-top:20px;">' + '<label for="chkOptimizeTextSize" style="margin:0;"><input id="chkOptimizeTextSize" type="checkbox" /> ' + out('Auto adjust text size on large screen.') + '</label>' + '</div>' + '<div id="divContainerLineHeight" style="display:flex;flex-direction: column;">' + '<div style="padding-top:15px;padding-bottom: 3px;">Line Height:</div>' + '<div style="display:flex;flex-flow: wrap;width: 290px;">' + '<button title="' + out('1') + '" class="cmd-box-lineheight" data-value="1" style="width:40px">1</button>' + '<button title="' + out('1.1') + '" class="cmd-box-lineheight" data-value="1.1" style="width:40px">1.1</button>' + '<button title="' + out('1.2') + '" class="cmd-box-lineheight" data-value="1.2" style="width:40px">1.2</button>' + '<button title="' + out('1.3') + '" class="cmd-box-lineheight" data-value="1.3" style="width:40px">1.3</button>' + '<button title="' + out('1.4') + '" class="cmd-box-lineheight" data-value="1.4" style="width:40px">1.4</button>' + '<button title="' + out('1.5') + '" class="cmd-box-lineheight" data-value="1.5" style="width:40px">1.5</button>' + '<button title="' + out('1.6') + '" class="cmd-box-lineheight" data-value="1.6" style="width:40px">1.6</button>' + '<button title="' + out('1.7') + '" class="cmd-box-lineheight" data-value="1.7" style="width:40px">1.7</button>' + '<button title="' + out('1.8') + '" class="cmd-box-lineheight" data-value="1.8" style="width:40px">1.8</button>' + '<button title="' + out('1.9') + '" class="cmd-box-lineheight" data-value="1.9" style="width:40px">1.9</button>' + '<button title="' + out('2') + '" class="cmd-box-lineheight" data-value="2" style="width:40px">2</button>' + '<button title="' + out('Not Set') + '" class="cmd-box-lineheight" data-value="" style="">' + out('Not Set') + '</button>' + '<br style="clear:both">' + '</div>' + '</div>';
9868
+ html += (this.builder.settings.enableContentStyle ? '<div style="padding-top:10px;display:flex;flex-direction: column;">' + // '<div style="padding-top:20px;padding-bottom: 3px;">' + out('Typography') + ':</div>' +
9869
+ '<div style="display:flex">' + '<button title="' + out('Typography Style') + '" class="cmd-box-typography" data-value="+"> ' + out('Typography Style') + ' </button>' + '<br style="clear:both">' + '</div>' + '</div>' : '') + '</div>' + '<div id="divBoxContentContainer" class="is-tab-content" data-group="boxsettings" style="padding-top:0">' + '<div style="padding-top:10px;">' + '<label for="chkParallaxContent" style="margin:0;"><input id="chkParallaxContent" type="checkbox" /> ' + out('Parallax') + '</label>' + '</div>' + '<div style="padding-top:10px;">' + '<label for="chkFadeContent" style="margin:0;"><input id="chkFadeContent" type="checkbox" /> ' + out('Fade') + '</label>' + '</div>';
9869
9870
  html += '<div style="display:flex;flex-direction: row;">' + '<div style="display:flex;flex-direction: column;margin-right:20px;">' + '<div style="padding-top:13px;padding-bottom: 3px;">' + out('Position') + ':</div>' + '<div style="display:flex">' + '<button title="' + out('Top Left') + '" class="cmd-box-content-pos" data-value="topleft" style="width:40px;">&#8598;</button>' + '<button title="' + out('Top Center') + '" class="cmd-box-content-pos" data-value="topcenter" style="width:40px;border-left:none;">&#8593;</button>' + '<button title="' + out('Top Right') + '" class="cmd-box-content-pos" data-value="topright" style="width:40px;border-left:none;">&#8599;</button>' + '</div>' + '<div style="display:flex">' + '<button title="' + out('Middle Left') + '" class="cmd-box-content-pos" data-value="middleleft" style="width:40px;border-top:none;">&#8592;</button>' + '<button title="' + out('Middle Center') + '" class="cmd-box-content-pos" data-value="middlecenter" style="width:40px;border-left:none;border-top:none;">&#9737;</button>' + '<button title="' + out('Middle Right') + '" class="cmd-box-content-pos" data-value="middleright" style="width:40px;border-left:none;border-top:none;">&#8594;</button>' + '</div>' + '<div style="display:flex">' + '<button title="' + out('Bottom Left') + '" class="cmd-box-content-pos" data-value="bottomleft" style="width:40px;border-top:none;">&#8601;</button>' + '<button title="' + out('Bottom Center') + '" class="cmd-box-content-pos" data-value="bottomcenter" style="width:40px;border-left:none;border-top:none;">&#8595;</button>' + '<button title="' + out('Bottom Right') + '" class="cmd-box-content-pos" data-value="bottomright" style="width:40px;border-left:none;border-top:none;">&#8600;</button>' + '</div>' + '</div>' + '<div style="display:flex;flex-direction: column;">' + '<div style="padding-top:20px;padding-bottom: 1px;">' + out('Height') + ':</div>' + '<div style="display: flex;flex-direction: row;flex-wrap: wrap;">' + '<button title="' + out('Auto') + '" class="cmd-content-height" data-value="" style="width:60px">Auto</button>' + '<button title="' + out('Full') + '" class="cmd-content-height" data-value="100" style="width:40px">Full</button>' + '</div>' + '<div class="div-content-justify">' + '<div style="padding-top:10px;padding-bottom: 1px;">' + out('Justify') + ':</div>' + '<div style="display: flex;flex-direction: row;flex-wrap: wrap;">' + '<button title="' + out('Top') + '" class="cmd-content-justify" data-value="flex-start" style="width:40px"><svg class="is-icon-flex" style="width:14px;height:14px;"><use xlink:href="#icon-arrow-bar-to-up"></use></svg></button>' + '<button title="' + out('Bottom') + '" class="cmd-content-justify" data-value="flex-end" style="width:40px"><svg class="is-icon-flex" style="width:14px;height:14px;"><use xlink:href="#icon-arrow-bar-to-down"></use></svg></button>' + '<button title="' + out('Space Between') + '" class="cmd-content-justify" data-value="space-between" style="width:40px"><svg class="is-icon-flex" style="width:14px;height:14px;"><use xlink:href="#icon-space-between"></use></svg></button>' + '</div>' + '</div>' + '</div>' + '</div>';
9870
9871
  html += '<div style="display:flex;flex-direction: column;">' + '<div style="padding-top:20px;padding-bottom: 3px;">' + out('Vertical Adjustment') + ':</div>' + '<div style="display:flex">' + '<button title="' + out('Decrease') + '" class="cmd-box-content-edge-y" data-value="-" style="width:40px;">-</button>' + '<button title="' + out('Increase') + '" class="cmd-box-content-edge-y" data-value="+" style="width:40px;border-left:none;">+</button>' + '<button title="' + out('Not Set') + '" class="cmd-box-content-edge-y" data-value="" style="display:none;width:40px;border-left:none;min-width:100px;">' + out('Not Set') + '</button>' + '</div>' + '</div>' + '<div style="display:flex;flex-direction: column;">' + '<div style="padding-top:20px;padding-bottom: 3px;">' + out('Horizontal Adjustment') + ':</div>' + '<div style="display:flex">' + '<button title="' + out('Decrease') + '" class="cmd-box-content-edge-x" data-value="-" style="width:40px;">-</button>' + '<button title="' + out('Increase') + '" class="cmd-box-content-edge-x" data-value="+" style="width:40px;border-left:none;">+</button>' + '<button title="' + out('Not Set') + '" class="cmd-box-content-edge-x" data-value="" style="display:none;width:40px;border-left:none;min-width:100px;">' + out('Not Set') + '</button>' + '</div>' + '</div>' + '<div style="padding-top:13px;">' + '<label for="chkAutofitContent" style="margin:0;"><input id="chkAutofitContent" type="checkbox" /> ' + out('Autofit Content on Mobile') + '</label>' + '</div>' + '</div>';
9871
9872
  html += '<div id="divBoxImage" class="is-tab-content" data-group="boxsettings" style="padding-top:0">' + (this.builder.settings.onCoverImageSelectClick != null ? '<div style="padding-top:20px;">' + '<button class="cmd-box-selectasset" style="width:120px;">' + out('Select Image') + '</button>' + '</div>' + '<div style="padding-top:20px;">' + '<label for="chkAnimateBg" style="margin:0;"><input id="chkAnimateBg" type="checkbox" /> ' + out('Ken Burns Effect') + '</label>' + '</div>' : '<div style="padding-top:20px;">' + '<label for="chkAnimateBg" style="margin:0;"><input id="chkAnimateBg" type="checkbox" /> ' + out('Ken Burns Effect') + '</label>' + '</div>') + '<div style="padding-top:10px;">' + '<label for="chkParallaxBg" style="margin:0;"><input id="chkParallaxBg" type="checkbox" /> ' + out('Parallax') + ' & ' + out('Scale') + '</label>' + '</div>' + '<div style="padding-top:10px;">' + '<label for="chkParallaxBg2" style="margin:0;"><input id="chkParallaxBg2" type="checkbox" /> ' + out('Parallax') + ' ' + out('(visible on preview)') + '</label>' + '</div>';
@@ -9924,7 +9925,21 @@ class EditBox {
9924
9925
  this.modalEditBox = modalEditBox;
9925
9926
  const modalEditCode = builderStuff.querySelector('.is-modal.editcustomcode');
9926
9927
  const modalEditModule = builderStuff.querySelector('.is-modal.editmodule');
9927
- new Tabs$1(modalEditBox);
9928
+ new Tabs$1(modalEditBox); // Backward compatibility
9929
+
9930
+ let s = '<div class="feature-master-style"></div>';
9931
+ dom$j.appendHtml(modalEditBox, s);
9932
+ const stamp = modalEditBox.querySelector('.feature-master-style');
9933
+ let d = window.getComputedStyle(stamp, null).getPropertyValue('display');
9934
+
9935
+ if (d === 'none') ; else {
9936
+ const divContainerParagraphSize = modalEditBox.querySelector('#divContainerParagraphSize');
9937
+ const divContainerLineHeight = modalEditBox.querySelector('#divContainerLineHeight');
9938
+ divContainerParagraphSize.style.display = 'none';
9939
+ divContainerLineHeight.style.display = 'none';
9940
+ }
9941
+
9942
+ stamp.parentNode.removeChild(stamp);
9928
9943
  const tabs = modalEditBox.querySelectorAll('.is-tabs a');
9929
9944
  tabs.forEach(tab => {
9930
9945
  tab.addEventListener('click', e => {
@@ -9962,7 +9977,13 @@ class EditBox {
9962
9977
  btnBoxTextColor.addEventListener('click', () => {
9963
9978
  this.builder.editor.saveForUndo();
9964
9979
  let color = btnBoxTextColor.getAttribute('data-value');
9965
- this.boxTextColor(color); //Trigger Change event
9980
+ this.boxTextColor(color); // realtime
9981
+
9982
+ const btns = modalEditBox.querySelectorAll('.cmd-box-textcolor');
9983
+ btns.forEach(btn => {
9984
+ dom$j.removeClass(btn, 'on');
9985
+ });
9986
+ if (color !== '') dom$j.addClass(btnBoxTextColor, 'on'); //Trigger Change event
9966
9987
 
9967
9988
  this.builder.settings.onChange();
9968
9989
  });
@@ -9972,7 +9993,81 @@ class EditBox {
9972
9993
  btnBoxTextAlign.addEventListener('click', () => {
9973
9994
  this.builder.editor.saveForUndo();
9974
9995
  let align = btnBoxTextAlign.getAttribute('data-value');
9975
- this.boxTextAlign(align); //Trigger Change event
9996
+ this.boxTextAlign(align); // realtime
9997
+
9998
+ const btns = modalEditBox.querySelectorAll('.cmd-box-textalign');
9999
+ btns.forEach(btn => {
10000
+ dom$j.removeClass(btn, 'on');
10001
+ });
10002
+ if (align !== '') dom$j.addClass(btnBoxTextAlign, 'on'); //Trigger Change event
10003
+
10004
+ this.builder.settings.onChange();
10005
+ });
10006
+ });
10007
+ const btnBoxParaSizes = modalEditBox.querySelectorAll('.cmd-box-parasize');
10008
+ btnBoxParaSizes.forEach(btnBoxParaSize => {
10009
+ btnBoxParaSize.addEventListener('click', () => {
10010
+ this.builder.editor.saveForUndo();
10011
+ let activeBox = this.builder.activeBox;
10012
+ let container = activeBox.querySelector('.is-builder');
10013
+ dom$j.removeClass(container, 'size-16');
10014
+ dom$j.removeClass(container, 'size-17');
10015
+ dom$j.removeClass(container, 'size-18');
10016
+ dom$j.removeClass(container, 'size-19');
10017
+ dom$j.removeClass(container, 'size-20');
10018
+ dom$j.removeClass(container, 'size-21');
10019
+ let val = btnBoxParaSize.getAttribute('data-value');
10020
+ if (val === '16') dom$j.addClass(container, 'size-16');
10021
+ if (val === '17') dom$j.addClass(container, 'size-17');
10022
+ if (val === '18') dom$j.addClass(container, 'size-18');
10023
+ if (val === '19') dom$j.addClass(container, 'size-19');
10024
+ if (val === '20') dom$j.addClass(container, 'size-20');
10025
+ if (val === '21') dom$j.addClass(container, 'size-21'); // realtime
10026
+
10027
+ const btns = modalEditBox.querySelectorAll('.cmd-box-parasize');
10028
+ btns.forEach(btn => {
10029
+ dom$j.removeClass(btn, 'on');
10030
+ });
10031
+ if (val !== '') dom$j.addClass(btnBoxParaSize, 'on'); //Trigger Change event
10032
+
10033
+ this.builder.settings.onChange();
10034
+ });
10035
+ });
10036
+ const btnBoxLineHeights = modalEditBox.querySelectorAll('.cmd-box-lineheight');
10037
+ btnBoxLineHeights.forEach(btnBoxLineHeight => {
10038
+ btnBoxLineHeight.addEventListener('click', () => {
10039
+ this.builder.editor.saveForUndo();
10040
+ let activeBox = this.builder.activeBox;
10041
+ let container = activeBox.querySelector('.is-builder');
10042
+ dom$j.removeClass(container, 'leading-none');
10043
+ dom$j.removeClass(container, 'leading-11');
10044
+ dom$j.removeClass(container, 'leading-12');
10045
+ dom$j.removeClass(container, 'leading-13');
10046
+ dom$j.removeClass(container, 'leading-14');
10047
+ dom$j.removeClass(container, 'leading-15');
10048
+ dom$j.removeClass(container, 'leading-16');
10049
+ dom$j.removeClass(container, 'leading-17');
10050
+ dom$j.removeClass(container, 'leading-18');
10051
+ dom$j.removeClass(container, 'leading-19');
10052
+ dom$j.removeClass(container, 'leading-20');
10053
+ let val = btnBoxLineHeight.getAttribute('data-value');
10054
+ if (val === '1') dom$j.addClass(container, 'leading-none');
10055
+ if (val === '1.1') dom$j.addClass(container, 'leading-11');
10056
+ if (val === '1.2') dom$j.addClass(container, 'leading-12');
10057
+ if (val === '1.3') dom$j.addClass(container, 'leading-13');
10058
+ if (val === '1.4') dom$j.addClass(container, 'leading-14');
10059
+ if (val === '1.5') dom$j.addClass(container, 'leading-15');
10060
+ if (val === '1.6') dom$j.addClass(container, 'leading-16');
10061
+ if (val === '1.7') dom$j.addClass(container, 'leading-17');
10062
+ if (val === '1.8') dom$j.addClass(container, 'leading-18');
10063
+ if (val === '1.9') dom$j.addClass(container, 'leading-19');
10064
+ if (val === '2') dom$j.addClass(container, 'leading-20'); // realtime
10065
+
10066
+ const btns = modalEditBox.querySelectorAll('.cmd-box-lineheight');
10067
+ btns.forEach(btn => {
10068
+ dom$j.removeClass(btn, 'on');
10069
+ });
10070
+ if (val !== '') dom$j.addClass(btnBoxLineHeight, 'on'); //Trigger Change event
9976
10071
 
9977
10072
  this.builder.settings.onChange();
9978
10073
  });
@@ -11383,6 +11478,106 @@ class EditBox {
11383
11478
  }
11384
11479
  }
11385
11480
 
11481
+ let btns = modalEditBox.querySelectorAll('.cmd-box-textcolor');
11482
+ btns.forEach(btn => {
11483
+ dom$j.removeClass(btn, 'on');
11484
+ });
11485
+
11486
+ if (dom$j.hasClass(activeBox, 'is-dark-text')) {
11487
+ const btn = modalEditBox.querySelector('.cmd-box-textcolor[data-value="dark"]');
11488
+ dom$j.addClass(btn, 'on');
11489
+ } else if (dom$j.hasClass(activeBox, 'is-light-text')) {
11490
+ const btn = modalEditBox.querySelector('.cmd-box-textcolor[data-value="light"]');
11491
+ dom$j.addClass(btn, 'on');
11492
+ }
11493
+
11494
+ btns = modalEditBox.querySelectorAll('.cmd-box-textalign');
11495
+ btns.forEach(btn => {
11496
+ dom$j.removeClass(btn, 'on');
11497
+ });
11498
+
11499
+ if (dom$j.hasClass(activeBox, 'is-align-left')) {
11500
+ const btn = modalEditBox.querySelector('.cmd-box-textalign[data-value="left"]');
11501
+ dom$j.addClass(btn, 'on');
11502
+ } else if (dom$j.hasClass(activeBox, 'is-align-center')) {
11503
+ const btn = modalEditBox.querySelector('.cmd-box-textalign[data-value="center"]');
11504
+ dom$j.addClass(btn, 'on');
11505
+ } else if (dom$j.hasClass(activeBox, 'is-align-right')) {
11506
+ const btn = modalEditBox.querySelector('.cmd-box-textalign[data-value="right"]');
11507
+ dom$j.addClass(btn, 'on');
11508
+ } else if (dom$j.hasClass(activeBox, 'is-align-justify')) {
11509
+ const btn = modalEditBox.querySelector('.cmd-box-textalign[data-value="justify"]');
11510
+ dom$j.addClass(btn, 'on');
11511
+ }
11512
+
11513
+ if (container) {
11514
+ btns = modalEditBox.querySelectorAll('.cmd-box-parasize');
11515
+ btns.forEach(btn => {
11516
+ dom$j.removeClass(btn, 'on');
11517
+ });
11518
+
11519
+ if (dom$j.hasClass(container, 'size-16')) {
11520
+ const btn = modalEditBox.querySelector('.cmd-box-parasize[data-value="16"]');
11521
+ dom$j.addClass(btn, 'on');
11522
+ } else if (dom$j.hasClass(container, 'size-17')) {
11523
+ const btn = modalEditBox.querySelector('.cmd-box-parasize[data-value="17"]');
11524
+ dom$j.addClass(btn, 'on');
11525
+ } else if (dom$j.hasClass(container, 'size-18')) {
11526
+ const btn = modalEditBox.querySelector('.cmd-box-parasize[data-value="18"]');
11527
+ dom$j.addClass(btn, 'on');
11528
+ } else if (dom$j.hasClass(container, 'size-19')) {
11529
+ const btn = modalEditBox.querySelector('.cmd-box-parasize[data-value="19"]');
11530
+ dom$j.addClass(btn, 'on');
11531
+ } else if (dom$j.hasClass(container, 'size-20')) {
11532
+ const btn = modalEditBox.querySelector('.cmd-box-parasize[data-value="20"]');
11533
+ dom$j.addClass(btn, 'on');
11534
+ } else if (dom$j.hasClass(container, 'size-21')) {
11535
+ const btn = modalEditBox.querySelector('.cmd-box-parasize[data-value="21"]');
11536
+ dom$j.addClass(btn, 'on');
11537
+ } // realtime
11538
+
11539
+
11540
+ btns = modalEditBox.querySelectorAll('.cmd-box-lineheight');
11541
+ btns.forEach(btn => {
11542
+ dom$j.removeClass(btn, 'on');
11543
+ });
11544
+
11545
+ if (dom$j.hasClass(container, 'leading-none')) {
11546
+ const btn = modalEditBox.querySelector('.cmd-box-lineheight[data-value="1"]');
11547
+ dom$j.addClass(btn, 'on');
11548
+ } else if (dom$j.hasClass(container, 'leading-11')) {
11549
+ const btn = modalEditBox.querySelector('.cmd-box-lineheight[data-value="1.1"]');
11550
+ dom$j.addClass(btn, 'on');
11551
+ } else if (dom$j.hasClass(container, 'leading-12')) {
11552
+ const btn = modalEditBox.querySelector('.cmd-box-lineheight[data-value="1.2"]');
11553
+ dom$j.addClass(btn, 'on');
11554
+ } else if (dom$j.hasClass(container, 'leading-13')) {
11555
+ const btn = modalEditBox.querySelector('.cmd-box-lineheight[data-value="1.3"]');
11556
+ dom$j.addClass(btn, 'on');
11557
+ } else if (dom$j.hasClass(container, 'leading-14')) {
11558
+ const btn = modalEditBox.querySelector('.cmd-box-lineheight[data-value="1.4"]');
11559
+ dom$j.addClass(btn, 'on');
11560
+ } else if (dom$j.hasClass(container, 'leading-15')) {
11561
+ const btn = modalEditBox.querySelector('.cmd-box-lineheight[data-value="1.5"]');
11562
+ dom$j.addClass(btn, 'on');
11563
+ } else if (dom$j.hasClass(container, 'leading-16')) {
11564
+ const btn = modalEditBox.querySelector('.cmd-box-lineheight[data-value="1.6"]');
11565
+ dom$j.addClass(btn, 'on');
11566
+ } else if (dom$j.hasClass(container, 'leading-17')) {
11567
+ const btn = modalEditBox.querySelector('.cmd-box-lineheight[data-value="1.7"]');
11568
+ dom$j.addClass(btn, 'on');
11569
+ } else if (dom$j.hasClass(container, 'leading-18')) {
11570
+ const btn = modalEditBox.querySelector('.cmd-box-lineheight[data-value="1.8"]');
11571
+ dom$j.addClass(btn, 'on');
11572
+ } else if (dom$j.hasClass(container, 'leading-19')) {
11573
+ const btn = modalEditBox.querySelector('.cmd-box-lineheight[data-value="1.9"]');
11574
+ dom$j.addClass(btn, 'on');
11575
+ } else if (dom$j.hasClass(container, 'leading-20')) {
11576
+ const btn = modalEditBox.querySelector('.cmd-box-lineheight[data-value="2"]');
11577
+ dom$j.addClass(btn, 'on');
11578
+ }
11579
+ }
11580
+
11386
11581
  modalEditBox.querySelector('#chkOptimizeTextSize').checked = false;
11387
11582
 
11388
11583
  if (container) {