@innovastudio/contentbuilder 1.5.4 → 1.5.6

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.4",
4
+ "version": "1.5.6",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -71827,7 +71827,7 @@ class SaveImages {
71827
71827
  if (this.opts.onBase64Upload) {
71828
71828
  //Read image (base64 string)
71829
71829
  let image = src;
71830
- image = image.replace(/^data:image\/(png|jpeg);base64,/, '');
71830
+ image = image.replace(/^data:image\/(png|svg\+xml|jpeg);base64,/, '');
71831
71831
  let filename = img.getAttribute('data-filename');
71832
71832
  this.opts.onBase64Upload(img, image, filename); // target image, base64 string, filename
71833
71833
  } else {
@@ -71835,7 +71835,7 @@ class SaveImages {
71835
71835
 
71836
71836
  //Read image (base64 string)
71837
71837
  let image = src;
71838
- image = image.replace(/^data:image\/(png|jpeg);base64,/, '');
71838
+ image = image.replace(/^data:image\/(png|svg\+xml|jpeg);base64,/, '');
71839
71839
 
71840
71840
  //Prepare form to submit image
71841
71841
  if (!this.builderStuff.querySelector('#form-' + this.count)) {
@@ -81642,6 +81642,7 @@ class Common {
81642
81642
  block.style.height = height + '%';
81643
81643
  block.style.top = top + '%';
81644
81644
  block.style.left = left + '%';
81645
+ if (block.classList.contains('height-auto')) block.style.height = '';
81645
81646
  }
81646
81647
  }
81647
81648
  applyPixels(block) {
@@ -89383,7 +89384,11 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
89383
89384
  e.preventDefault();
89384
89385
  return;
89385
89386
  }
89387
+ if (this.activeImage) {
89388
+ this.util.hideControls(); //deleting an image should also clear the visible image tool (and resizer).
89389
+ }
89386
89390
  }
89391
+
89387
89392
  this.oriLen = col.textContent.length; // get character length
89388
89393
 
89389
89394
  // Cleanup unwanted span