@innovastudio/contentbuilder 1.4.29 → 1.4.30
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
@@ -52716,6 +52716,7 @@ class ButtonEditor {
|
|
52716
52716
|
|
52717
52717
|
activeButton.classList.remove('active');
|
52718
52718
|
this.realtime();
|
52719
|
+
this.builder.opts.onChange();
|
52719
52720
|
e.preventDefault();
|
52720
52721
|
return false;
|
52721
52722
|
});
|
@@ -81530,8 +81531,11 @@ class ContentBuilder {
|
|
81530
81531
|
Additional Cleanup:
|
81531
81532
|
- Remove empty elements (empty p, etc)
|
81532
81533
|
*/
|
81533
|
-
this.activeCol.find('h1:empty,h2:empty,h3:empty,h4:empty,h5:empty,h6:empty,p:empty').remove();
|
81534
|
-
|
81534
|
+
// this.activeCol.find('h1:empty,h2:empty,h3:empty,h4:empty,h5:empty,h6:empty,p:empty').remove();
|
81535
|
+
// this.activeCol.querySelectorAll('*:empty').forEach((x)=>{x.remove();}); // Makes <img> removed
|
81536
|
+
this.activeCol.querySelectorAll('h1:empty,h2:empty,h3:empty,h4:empty,h5:empty,h6:empty,p:empty').forEach(x => {
|
81537
|
+
x.remove();
|
81538
|
+
});
|
81535
81539
|
/*
|
81536
81540
|
Additional Cleanup:
|
81537
81541
|
Fix HTML structure. The problem:
|