@innovastudio/contentbuilder 1.4.135 → 1.4.136
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
|
@@ -76967,8 +76967,9 @@ class ContentBuilder {
|
|
|
76967
76967
|
// col.addEventListener('paste', this.handleCellPaste.bind(this));
|
|
76968
76968
|
col.addEventListener('paste', e => {
|
|
76969
76969
|
e.preventDefault();
|
|
76970
|
-
|
|
76971
|
-
|
|
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;
|
|
76972
76973
|
this.handleCellPaste(clipboardDataText, clipboardDataHtml);
|
|
76973
76974
|
});
|
|
76974
76975
|
col.setAttribute('data-click', true);
|