@innovastudio/contentbuilder 1.1.8 → 1.1.11
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
|
@@ -6605,6 +6605,8 @@ class Dom {
|
|
|
6605
6605
|
|
|
6606
6606
|
|
|
6607
6607
|
hasClass(element, className) {
|
|
6608
|
+
if (!element) return false;
|
|
6609
|
+
if (!element.className) return false;
|
|
6608
6610
|
return (' ' + element.className + ' ').indexOf(' ' + className + ' ') > -1;
|
|
6609
6611
|
}
|
|
6610
6612
|
|
|
@@ -46852,6 +46854,7 @@ class Image {
|
|
|
46852
46854
|
imageTool.style.display = '';
|
|
46853
46855
|
setTimeout(() => {
|
|
46854
46856
|
let elm = this.builder.activeImage;
|
|
46857
|
+
if (!elm) return;
|
|
46855
46858
|
|
|
46856
46859
|
if (dom$A.hasClass(elm.parentNode, 'img-circular')) {
|
|
46857
46860
|
elm = elm.parentNode;
|
|
@@ -66714,8 +66717,13 @@ class ContentBuilder {
|
|
|
66714
66717
|
|
|
66715
66718
|
document.addEventListener('click', this.doDocumentClick = e => {
|
|
66716
66719
|
e = e || window.event;
|
|
66717
|
-
|
|
66718
|
-
|
|
66720
|
+
let target = e.target || e.srcElement;
|
|
66721
|
+
if (!target) return;
|
|
66722
|
+
let rowClicked;
|
|
66723
|
+
if (target.parentNode) rowClicked = dom.hasClass(target.parentNode, 'is-builder');else {
|
|
66724
|
+
console.log(target);
|
|
66725
|
+
console.log(target.parentNode);
|
|
66726
|
+
}
|
|
66719
66727
|
let containerClicked = dom.hasClass(target, 'is-builder');
|
|
66720
66728
|
let a = false,
|
|
66721
66729
|
b = false,
|