@innovastudio/contentbuilder 1.5.4 → 1.5.6
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
@@ -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
|