@innovastudio/contentbuilder 1.5.87 → 1.5.89

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.5.87",
4
+ "version": "1.5.89",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -1590,8 +1590,8 @@ const renderQuickAdd = builder => {
1590
1590
 
1591
1591
  btnSend.innerHTML = '<span class="loading-icon"><svg class="animate-spin" style="margin-right:7px;width:20px;height:20px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg></span>Submit';
1592
1592
 
1593
- var data = new FormData(event.target);
1594
- fetch(event.target.action, {
1593
+ var data = new FormData(form);
1594
+ fetch(form.action, {
1595
1595
  method: form.method,
1596
1596
  body: data,
1597
1597
  headers: {
@@ -95204,6 +95204,8 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
95204
95204
  // ON PASTE
95205
95205
  // col.addEventListener('paste', this.handleCellPaste.bind(this));
95206
95206
  col.addEventListener('paste', e => {
95207
+ if (e.target.closest('[data-html]')) return; // normal paste
95208
+
95207
95209
  e.preventDefault();
95208
95210
  let clipboardDataText = (e.clipboardData || window.clipboardData).getData('text');
95209
95211
  let clipboardDataHtml = (e.clipboardData || window.clipboardData).getData('text/html');