@innovastudio/contentbox 1.6.12 → 1.6.14
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@innovastudio/contentbox",
|
3
|
-
"type":
|
4
|
-
"version": "1.6.
|
3
|
+
"type":"module",
|
4
|
+
"version": "1.6.14",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"files": [
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"ws": "^8.13.0"
|
53
53
|
},
|
54
54
|
"dependencies": {
|
55
|
-
"@innovastudio/contentbuilder": "^1.4.
|
55
|
+
"@innovastudio/contentbuilder": "^1.4.136",
|
56
56
|
"js-beautify": "^1.14.0"
|
57
57
|
}
|
58
58
|
}
|
@@ -97913,8 +97913,9 @@ class ContentBuilder {
|
|
97913
97913
|
// col.addEventListener('paste', this.handleCellPaste.bind(this));
|
97914
97914
|
col.addEventListener('paste', e => {
|
97915
97915
|
e.preventDefault();
|
97916
|
-
|
97917
|
-
|
97916
|
+
let clipboardDataText = (e.clipboardData || window.clipboardData).getData('text');
|
97917
|
+
let clipboardDataHtml = (e.clipboardData || window.clipboardData).getData('text/html');
|
97918
|
+
if (clipboardDataHtml.trim() === '') clipboardDataHtml = clipboardDataText;
|
97918
97919
|
this.handleCellPaste(clipboardDataText, clipboardDataHtml);
|
97919
97920
|
});
|
97920
97921
|
col.setAttribute('data-click', true);
|