@innovastudio/contentbuilder 1.5.179 → 1.5.180
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
|
@@ -72807,14 +72807,14 @@ class Rte {
|
|
|
72807
72807
|
_protected = true;
|
|
72808
72808
|
}
|
|
72809
72809
|
let customcode = false;
|
|
72810
|
-
let subblock = false;
|
|
72811
72810
|
if (col.hasAttribute('data-html')) {
|
|
72812
72811
|
// Column contains custom code.
|
|
72813
72812
|
customcode = true;
|
|
72814
|
-
|
|
72815
|
-
|
|
72816
|
-
|
|
72817
|
-
|
|
72813
|
+
}
|
|
72814
|
+
const plugin = elm.closest('[data-cb-type]');
|
|
72815
|
+
let subblock = false;
|
|
72816
|
+
if (elm.closest('.is-subblock') && !elm.classList.contains('is-subblock')) {
|
|
72817
|
+
subblock = true;
|
|
72818
72818
|
}
|
|
72819
72819
|
if (this.builder.canvas) this.hideBlockButtons();
|
|
72820
72820
|
|
|
@@ -72835,7 +72835,7 @@ class Rte {
|
|
|
72835
72835
|
if (btnTextSettings) btnTextSettings.style.display = '';
|
|
72836
72836
|
if (btnLink) btnLink.style.display = '';
|
|
72837
72837
|
if (btnSymbol) btnSymbol.style.display = '';
|
|
72838
|
-
if (!customcode && !noedit && !_protected || subblock) {
|
|
72838
|
+
if (!customcode && !noedit && !_protected && !plugin || subblock) {
|
|
72839
72839
|
if ((dom.hasClass(elm, 'is-social') || dom.hasClass(elm, 'is-rounded-button-medium') || dom.hasClass(elm, 'cell-active')) && !dom.getSelected()) {
|
|
72840
72840
|
if (this.elementRteTool.style.display === 'none' || this.elementRteTool.style.display === '') {
|
|
72841
72841
|
this.elementRteTool.style.display = 'flex';
|