@innovastudio/contentbuilder 1.5.70 → 1.5.71

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.70",
4
+ "version": "1.5.71",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -93411,7 +93411,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
93411
93411
  };
93412
93412
 
93413
93413
  // Add document Click event
93414
- document.addEventListener('click', this.doDocumentClick = e => {
93414
+ this.doDocumentClick = e => {
93415
93415
  let target = e.target;
93416
93416
  if (!target) return;
93417
93417
  rteClick(e);
@@ -93542,10 +93542,19 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
93542
93542
  });
93543
93543
  }
93544
93544
  */
93545
- });
93545
+ };
93546
93546
 
93547
+ // document.addEventListener('click', this.doDocumentClick);
93548
+ document.addEventListener('mousedown', this.doDocumentClick);
93549
+ document.addEventListener('touchstart', this.doDocumentClick, {
93550
+ passive: false
93551
+ });
93547
93552
  if (this.iframe) {
93548
- this.doc.addEventListener('click', this.doDocumentClick);
93553
+ // this.doc.addEventListener('click', this.doDocumentClick);
93554
+ this.doc.addEventListener('mousedown', this.doDocumentClick);
93555
+ this.doc.addEventListener('touchstart', this.doDocumentClick, {
93556
+ passive: false
93557
+ });
93549
93558
  }
93550
93559
 
93551
93560
  // Drag row will hide content tools
@@ -95075,13 +95084,18 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
95075
95084
  if (snippetData) snippetData.remove();
95076
95085
  if (this.eb) this.eb.destroy();
95077
95086
  this.doc.body.classList.remove('data-editor');
95078
- document.removeEventListener('click', this.doDocumentClick, false);
95087
+
95088
+ // document.removeEventListener('click', this.doDocumentClick, false);
95089
+ document.removeEventListener('mousedown', this.doDocumentClick);
95090
+ document.removeEventListener('touchstart', this.doDocumentClick);
95079
95091
  document.removeEventListener('keydown', this.doDocumentKeydown, false);
95080
95092
  document.removeEventListener('mousedown', this.doDocumentMousedown, false);
95081
95093
  document.removeEventListener('click', this.doRteClick, false);
95082
95094
  this.doc.removeEventListener('click', this.doHideSnippetHandler, false);
95083
95095
  if (this.iframe) {
95084
- this.doc.removeEventListener('click', this.doDocumentClick, false);
95096
+ // this.doc.removeEventListener('click', this.doDocumentClick, false);
95097
+ this.doc.removeEventListener('mousedown', this.doDocumentClick);
95098
+ this.doc.removeEventListener('touchstart', this.doDocumentClick);
95085
95099
  this.doc.removeEventListener('keydown', this.doDocumentKeydown, false);
95086
95100
  this.doc.removeEventListener('mousedown', this.doDocumentMousedown, false);
95087
95101
  this.doc.removeEventListener('click', this.doRteClick, false);