@innovastudio/contentbuilder 1.5.5 → 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)) {
|
|
@@ -89384,7 +89384,11 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
89384
89384
|
e.preventDefault();
|
|
89385
89385
|
return;
|
|
89386
89386
|
}
|
|
89387
|
+
if (this.activeImage) {
|
|
89388
|
+
this.util.hideControls(); //deleting an image should also clear the visible image tool (and resizer).
|
|
89389
|
+
}
|
|
89387
89390
|
}
|
|
89391
|
+
|
|
89388
89392
|
this.oriLen = col.textContent.length; // get character length
|
|
89389
89393
|
|
|
89390
89394
|
// Cleanup unwanted span
|