@innovastudio/contentbox 1.2.21 → 1.2.22
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
|
@@ -9618,14 +9618,15 @@ class EditBox {
|
|
|
9618
9618
|
|
|
9619
9619
|
dom$K.addClass(activeBox, 'box-active');
|
|
9620
9620
|
this.builder.showModal(modalEditBox);
|
|
9621
|
-
const inpBoxSize = modalEditBox.querySelector('.inp-box-size');
|
|
9622
9621
|
|
|
9623
9622
|
if (container) {
|
|
9624
|
-
let maxWidth = parseInt(container.style.maxWidth);
|
|
9625
|
-
if (!isNaN(maxWidth)) inpBoxSize.value = parseInt(container.style.maxWidth);
|
|
9626
9623
|
modalEditBox.querySelector('.val-box-size').innerHTML = '';
|
|
9627
|
-
|
|
9628
|
-
|
|
9624
|
+
container.classList.forEach(item => {
|
|
9625
|
+
if (item.indexOf('is-content-') !== -1 && item !== 'is-content-left' && item !== 'is-content-right') {
|
|
9626
|
+
let val = item.replace('is-content-', '');
|
|
9627
|
+
modalEditBox.querySelector('.val-box-size').innerHTML = val;
|
|
9628
|
+
}
|
|
9629
|
+
});
|
|
9629
9630
|
} // Animate Box
|
|
9630
9631
|
|
|
9631
9632
|
|