@innovastudio/contentbox 1.0.36 → 1.0.37
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innovastudio/contentbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.37",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "public/contentbox/contentbox.esm.js",
|
|
6
6
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@ashthornton/asscroll": "^2.0.4",
|
|
42
|
-
"@innovastudio/contentbuilder": "^1.0.
|
|
42
|
+
"@innovastudio/contentbuilder": "^1.0.65",
|
|
43
43
|
"axios": "^0.21.4",
|
|
44
44
|
"cors": "^2.8.5",
|
|
45
45
|
"express": "^4.17.1",
|
|
@@ -19192,8 +19192,8 @@ class HtmlUtil {
|
|
|
19192
19192
|
Array.prototype.forEach.call(emptystyles, emptystyle => {
|
|
19193
19193
|
emptystyle.removeAttribute('style');
|
|
19194
19194
|
});
|
|
19195
|
-
dom$E.removeEmptyStyle(tmp);
|
|
19196
|
-
|
|
19195
|
+
dom$E.removeEmptyStyle(tmp); // dom.cleanEmptySpans(tmp);
|
|
19196
|
+
|
|
19197
19197
|
elms = tmp.querySelectorAll('[data-keep]');
|
|
19198
19198
|
dom$E.removeAttributes(elms, 'data-keep'); //Cleanup button <span contenteditable="false"><a contenteditable="true">button</a></span>
|
|
19199
19199
|
|
|
@@ -50061,6 +50061,10 @@ class Image {
|
|
|
50061
50061
|
resize = false;
|
|
50062
50062
|
}
|
|
50063
50063
|
|
|
50064
|
+
if (this.builder.opts.maxEmbedImageWidth === -1) {
|
|
50065
|
+
resize = false;
|
|
50066
|
+
}
|
|
50067
|
+
|
|
50064
50068
|
if (!resize) {
|
|
50065
50069
|
// NEW: this is to prevent using MegaPixImage (problem with some PNG. PNG doesn't need to resize, so no need to use MegaPixImage)
|
|
50066
50070
|
let tmpCanvasNoCrop = document.getElementById('myTmpCanvasNoCrop');
|