@innovastudio/contentbuilder 1.5.69 → 1.5.71

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.5.69",
4
+ "version": "1.5.71",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -82074,6 +82074,7 @@ class Dictation {
82074
82074
  renderPanel() {
82075
82075
  const builderStuff = this.builder.builderStuff;
82076
82076
  this.builderStuff = builderStuff;
82077
+ if (builderStuff.querySelector('.page-command')) return;
82077
82078
  const util = this.builder.util;
82078
82079
  this.util = util;
82079
82080
  let disclaimerText = util.out('AI-Disclaimer');
@@ -93410,7 +93411,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
93410
93411
  };
93411
93412
 
93412
93413
  // Add document Click event
93413
- document.addEventListener('click', this.doDocumentClick = e => {
93414
+ this.doDocumentClick = e => {
93414
93415
  let target = e.target;
93415
93416
  if (!target) return;
93416
93417
  rteClick(e);
@@ -93541,10 +93542,19 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
93541
93542
  });
93542
93543
  }
93543
93544
  */
93544
- });
93545
+ };
93545
93546
 
93547
+ // document.addEventListener('click', this.doDocumentClick);
93548
+ document.addEventListener('mousedown', this.doDocumentClick);
93549
+ document.addEventListener('touchstart', this.doDocumentClick, {
93550
+ passive: false
93551
+ });
93546
93552
  if (this.iframe) {
93547
- 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
+ });
93548
93558
  }
93549
93559
 
93550
93560
  // Drag row will hide content tools
@@ -95074,13 +95084,18 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
95074
95084
  if (snippetData) snippetData.remove();
95075
95085
  if (this.eb) this.eb.destroy();
95076
95086
  this.doc.body.classList.remove('data-editor');
95077
- 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);
95078
95091
  document.removeEventListener('keydown', this.doDocumentKeydown, false);
95079
95092
  document.removeEventListener('mousedown', this.doDocumentMousedown, false);
95080
95093
  document.removeEventListener('click', this.doRteClick, false);
95081
95094
  this.doc.removeEventListener('click', this.doHideSnippetHandler, false);
95082
95095
  if (this.iframe) {
95083
- 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);
95084
95099
  this.doc.removeEventListener('keydown', this.doDocumentKeydown, false);
95085
95100
  this.doc.removeEventListener('mousedown', this.doDocumentMousedown, false);
95086
95101
  this.doc.removeEventListener('click', this.doRteClick, false);