@innovastudio/contentbuilder 1.4.135 → 1.4.137

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/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.4.135",
4
+ "version": "1.4.137",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -159,6 +159,7 @@ class Util {
159
159
  e.preventDefault();
160
160
  e.stopImmediatePropagation();
161
161
  });
162
+ if (buttonok) buttonok.focus();
162
163
  }
163
164
  showRtePop(pop, onShow, btn) {
164
165
  const dom = this.dom;
@@ -76967,8 +76968,9 @@ class ContentBuilder {
76967
76968
  // col.addEventListener('paste', this.handleCellPaste.bind(this));
76968
76969
  col.addEventListener('paste', e => {
76969
76970
  e.preventDefault();
76970
- const clipboardDataText = (e.clipboardData || window.clipboardData).getData('text');
76971
- const clipboardDataHtml = (e.clipboardData || window.clipboardData).getData('text/html');
76971
+ let clipboardDataText = (e.clipboardData || window.clipboardData).getData('text');
76972
+ let clipboardDataHtml = (e.clipboardData || window.clipboardData).getData('text/html');
76973
+ if (clipboardDataHtml.trim() === '') clipboardDataHtml = clipboardDataText;
76972
76974
  this.handleCellPaste(clipboardDataText, clipboardDataHtml);
76973
76975
  });
76974
76976
  col.setAttribute('data-click', true);