@innovastudio/contentbuilder 1.5.178 → 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.178",
4
+ "version": "1.5.180",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -63432,7 +63432,7 @@ class ElementTool {
63432
63432
  }
63433
63433
  let subblock = false;
63434
63434
  //if(dom.parentsHasAttribute(elm, 'data-subblock')) {
63435
- if (dom.parentsHasClass(elm, 'is-subblock')) {
63435
+ if (elm.closest('.is-subblock') && !elm.classList.contains('is-subblock')) {
63436
63436
  subblock = true;
63437
63437
  }
63438
63438
  const plugin = elm.closest('[data-cb-type]');
@@ -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
- if (elm.closest('.is-subblock')) {
72815
- // dom.parentsHasAttribute(elm, 'data-subblock')
72816
- subblock = true;
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';