@innovastudio/contentbuilder 1.4.133 → 1.4.136
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1853,7 +1853,6 @@ class Util {
|
|
1853
1853
|
const dom = this.dom;
|
1854
1854
|
const html = `
|
1855
1855
|
<input type="text" class="style-helper-input" style="display:none;">
|
1856
|
-
<label class="style-helper-label" style="display:none;"></label>
|
1857
1856
|
<button class="style-helper-button-classic classic" style="display:none;"><svg><use xlink:href="#ion-code-working"></use></svg></button>
|
1858
1857
|
<select class="style-helper-select" style="display:none;"><option value=""></option></select>
|
1859
1858
|
|
@@ -1901,7 +1900,6 @@ class Util {
|
|
1901
1900
|
return window.getComputedStyle(btn.querySelector('svg'), null).getPropertyValue('fill');
|
1902
1901
|
};
|
1903
1902
|
const inp = this.builder.builderStuff.querySelector('.style-helper-input');
|
1904
|
-
const lbl = this.builder.builderStuff.querySelector('.style-helper-label');
|
1905
1903
|
const sel = this.builder.builderStuff.querySelector('.style-helper-select');
|
1906
1904
|
const btnClassic = this.builder.builderStuff.querySelector('.style-helper-button-classic');
|
1907
1905
|
this.builder.styleModalColor = getVal('.modal-color', 'background-color');
|
@@ -1946,9 +1944,6 @@ class Util {
|
|
1946
1944
|
this.builder.styleInputBorderBottom = window.getComputedStyle(inp, null).getPropertyValue('border-bottom');
|
1947
1945
|
this.builder.styleInputColor = window.getComputedStyle(inp, null).getPropertyValue('color');
|
1948
1946
|
|
1949
|
-
// Label (ex. used in 'Search & Replace' plugin)
|
1950
|
-
this.builder.styleLabelColor = window.getComputedStyle(lbl, null).getPropertyValue('color');
|
1951
|
-
|
1952
1947
|
// Button Classic (ex. used in 'Search & Replace' plugin)
|
1953
1948
|
this.builder.styleButtonClassicBackground = window.getComputedStyle(btnClassic, null).getPropertyValue('background-color');
|
1954
1949
|
this.builder.styleButtonClassicColor = window.getComputedStyle(btnClassic, null).getPropertyValue('color');
|
@@ -76972,8 +76967,9 @@ class ContentBuilder {
|
|
76972
76967
|
// col.addEventListener('paste', this.handleCellPaste.bind(this));
|
76973
76968
|
col.addEventListener('paste', e => {
|
76974
76969
|
e.preventDefault();
|
76975
|
-
|
76976
|
-
|
76970
|
+
let clipboardDataText = (e.clipboardData || window.clipboardData).getData('text');
|
76971
|
+
let clipboardDataHtml = (e.clipboardData || window.clipboardData).getData('text/html');
|
76972
|
+
if (clipboardDataHtml.trim() === '') clipboardDataHtml = clipboardDataText;
|
76977
76973
|
this.handleCellPaste(clipboardDataText, clipboardDataHtml);
|
76978
76974
|
});
|
76979
76975
|
col.setAttribute('data-click', true);
|