@innovastudio/contentbuilder 1.3.52 → 1.3.53

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.3.52",
4
+ "version": "1.3.53",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -17175,10 +17175,10 @@ const renderQuickAdd = builder => {
17175
17175
  elm = quickadd.querySelector('.add-image');
17176
17176
  dom.addEventListener(elm, 'click', () => {
17177
17177
  const mode = quickadd.getAttribute('data-mode');
17178
- let html = `<img onload="imageLoaded(this)" src="${builder.opts.snippetPath}example.png" alt="" />`;
17178
+ let html = `<img src="${builder.opts.snippetPath}example.png" alt="" />`;
17179
17179
 
17180
17180
  if (builder.opts.snippetSampleImage) {
17181
- html = `<img onload="imageLoaded(this)" src="${builder.opts.snippetSampleImage}" alt="" />`;
17181
+ html = `<img src="${builder.opts.snippetSampleImage}" alt="" />`;
17182
17182
  }
17183
17183
 
17184
17184
  util.addContent(html, mode);
@@ -73008,7 +73008,10 @@ class Resize {
73008
73008
  // setTimeout(()=>{
73009
73009
  // col.click();
73010
73010
  // },30);
73011
+ //Trigger Change event
73012
+
73011
73013
 
73014
+ this.builder.opts.onChange();
73012
73015
  }
73013
73016
  });
73014
73017
  }
@@ -75351,11 +75354,8 @@ class ContentBuilder {
75351
75354
  window.selectImage = this.selectImage.bind(this);
75352
75355
  window.selectVideo = this.selectVideo.bind(this);
75353
75356
  window.selectAsset = this.selectAsset.bind(this);
75354
- window.imageLoaded = this.imageLoaded.bind(this); //this.imageLoaded;
75355
-
75356
75357
  window.assetType = this.assetType.bind(this);
75357
75358
  window.hideModal = this.hideModal.bind(this);
75358
- this.win.imageLoaded = this.imageLoaded.bind(this); //this.imageLoaded;
75359
75359
  } // constructor
75360
75360
  // Convenience constructor, so that the plugin can be called directly using: ContentBuilder.run({ ... });
75361
75361
 
@@ -76343,10 +76343,6 @@ class ContentBuilder {
76343
76343
 
76344
76344
  saveForUndo(checkLater) {
76345
76345
  this.uo.saveForUndo(checkLater);
76346
- }
76347
-
76348
- imageLoaded(obj) {
76349
- obj.removeAttribute('onload');
76350
76346
  } // Module related
76351
76347
 
76352
76348