@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.4.135",
4
+ "version": "1.4.136",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -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
- const clipboardDataText = (e.clipboardData || window.clipboardData).getData('text');
76971
- const clipboardDataHtml = (e.clipboardData || window.clipboardData).getData('text/html');
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);