@innovastudio/contentbox 1.6.12 → 1.6.13

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
3
  "type": "module",
4
- "version": "1.6.12",
4
+ "version": "1.6.13",
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.135",
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
- const clipboardDataText = (e.clipboardData || window.clipboardData).getData('text');
97917
- const clipboardDataHtml = (e.clipboardData || window.clipboardData).getData('text/html');
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);
@@ -128856,7 +128857,8 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
128856
128857
  wrapper.style.transition = 'none';
128857
128858
  },
128858
128859
  onZoom: scale => {
128859
- // Zoom Adjustment
128860
+ console.log('onZoom'); // Zoom Adjustment
128861
+
128860
128862
  const x = 300 * (1 - scale) / 0.5;
128861
128863
  this.wrapperEl.style.marginTop = `${x}px`;
128862
128864
  const wrapper = this.wrapperEl;
@@ -128872,8 +128874,10 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
128872
128874
  tools.forEach(elm => {
128873
128875
  elm.setAttribute('data-boxinfo-active', '');
128874
128876
  });
128877
+ this.ss();
128875
128878
  },
128876
128879
  onZoomEnd: () => {
128880
+ console.log('onZoomEnd');
128877
128881
  const wrapper = this.wrapperEl;
128878
128882
  const section = wrapper.querySelector('.is-section');
128879
128883
  if (!section) return; // empty content