@innovastudio/contentbuilder 1.4.135 → 1.4.136
Sign up to get free protection for your applications and to get access to all the features.
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);
|