@innovastudio/contentbuilder 1.1.26 → 1.1.29

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
- "version": "1.1.26",
3
+ "version": "1.1.29",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
@@ -48038,8 +48038,6 @@ class ButtonEditor {
48038
48038
  this.getVisibleBgColor(item, color => {
48039
48039
  btnBgColor.style.backgroundColor = color;
48040
48040
  activeButton.setAttribute('data-bg', color); //new inline
48041
-
48042
- activeButton.style.backgroundColor = color; //new inline
48043
48041
  });
48044
48042
  }
48045
48043
 
@@ -48047,7 +48045,6 @@ class ButtonEditor {
48047
48045
  this.getVisibleTextColor(item, color => {
48048
48046
  btnTextColor.style.backgroundColor = color;
48049
48047
  currColor = color;
48050
- activeButton.style.color = color; //new inline
48051
48048
  });
48052
48049
  }
48053
48050
  });
@@ -48060,7 +48057,8 @@ class ButtonEditor {
48060
48057
  } // NEW: inline color
48061
48058
 
48062
48059
 
48063
- if (activeButton.style.backgroundColor) btnBgColor.style.backgroundColor = activeButton.style.backgroundColor;
48060
+ if (activeButton.style.backgroundColor) btnBgColor.style.backgroundColor = activeButton.getAttribute('data-bg'); //activeButton.style.backgroundColor;
48061
+
48064
48062
  if (activeButton.getAttribute('data-hover-bg')) btnHoverBgColor.style.backgroundColor = activeButton.getAttribute('data-hover-bg');
48065
48063
  if (activeButton.style.color) btnTextColor.style.backgroundColor = activeButton.style.color;
48066
48064
  let btn;
@@ -48377,6 +48375,8 @@ class ButtonEditor {
48377
48375
  link.removeAttribute('data-hover-bgcolor');
48378
48376
  link.removeAttribute('data-hover-color');
48379
48377
  link.removeAttribute('data-hover-bordercolor');
48378
+ link.setAttribute('onmouseover', 'if(this.getAttribute(\'data-hover-bg\'))this.style.backgroundColor=this.getAttribute(\'data-hover-bg\');');
48379
+ link.setAttribute('onmouseout', 'if(this.getAttribute(\'data-bg\'))this.style.backgroundColor=this.getAttribute(\'data-bg\');else this.style.backgroundColor=\'\'');
48380
48380
  }
48381
48381
 
48382
48382
  cleanupOldClasses(link) {