@innovastudio/contentbuilder 1.0.62 → 1.0.67
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
|
@@ -9120,8 +9120,8 @@ class HtmlUtil {
|
|
|
9120
9120
|
Array.prototype.forEach.call(emptystyles, emptystyle => {
|
|
9121
9121
|
emptystyle.removeAttribute('style');
|
|
9122
9122
|
});
|
|
9123
|
-
dom$E.removeEmptyStyle(tmp);
|
|
9124
|
-
|
|
9123
|
+
dom$E.removeEmptyStyle(tmp); // dom.cleanEmptySpans(tmp);
|
|
9124
|
+
|
|
9125
9125
|
elms = tmp.querySelectorAll('[data-keep]');
|
|
9126
9126
|
dom$E.removeAttributes(elms, 'data-keep'); //Cleanup button <span contenteditable="false"><a contenteditable="true">button</a></span>
|
|
9127
9127
|
|
|
@@ -39280,6 +39280,10 @@ class Image {
|
|
|
39280
39280
|
let modalImageSelect = builderStuff.querySelector('.is-modal.imageselect');
|
|
39281
39281
|
let iframe = modalImageSelect.querySelector('iframe');
|
|
39282
39282
|
|
|
39283
|
+
if (this.builder.opts.assetRefresh) {
|
|
39284
|
+
iframe.src = this.builder.opts.imageselect;
|
|
39285
|
+
}
|
|
39286
|
+
|
|
39283
39287
|
if (iframe.src === 'about:blank') {
|
|
39284
39288
|
iframe.src = this.builder.opts.imageselect;
|
|
39285
39289
|
}
|
|
@@ -39302,6 +39306,10 @@ class Image {
|
|
|
39302
39306
|
let modalImageSelect = builderStuff.querySelector('.is-modal.imageselect');
|
|
39303
39307
|
let iframe = modalImageSelect.querySelector('iframe');
|
|
39304
39308
|
|
|
39309
|
+
if (this.builder.opts.assetRefresh) {
|
|
39310
|
+
iframe.src = this.builder.opts.imageselect;
|
|
39311
|
+
}
|
|
39312
|
+
|
|
39305
39313
|
if (iframe.src === 'about:blank') {
|
|
39306
39314
|
iframe.src = this.builder.opts.imageselect;
|
|
39307
39315
|
}
|
|
@@ -39989,6 +39997,10 @@ class Image {
|
|
|
39989
39997
|
resize = false;
|
|
39990
39998
|
}
|
|
39991
39999
|
|
|
40000
|
+
if (this.builder.opts.maxEmbedImageWidth === -1) {
|
|
40001
|
+
resize = false;
|
|
40002
|
+
}
|
|
40003
|
+
|
|
39992
40004
|
if (!resize) {
|
|
39993
40005
|
// NEW: this is to prevent using MegaPixImage (problem with some PNG. PNG doesn't need to resize, so no need to use MegaPixImage)
|
|
39994
40006
|
let tmpCanvasNoCrop = document.getElementById('myTmpCanvasNoCrop');
|
|
@@ -41419,6 +41431,10 @@ class Hyperlink {
|
|
|
41419
41431
|
} else {
|
|
41420
41432
|
let modalFileSelect = this.builderStuff.querySelector('.is-modal.fileselect');
|
|
41421
41433
|
|
|
41434
|
+
if (this.builder.opts.assetRefresh) {
|
|
41435
|
+
modalFileSelect.querySelector('iframe').src = this.builder.opts.fileselect;
|
|
41436
|
+
}
|
|
41437
|
+
|
|
41422
41438
|
if (modalFileSelect.querySelector('iframe').src === 'about:blank') {
|
|
41423
41439
|
modalFileSelect.querySelector('iframe').src = this.builder.opts.fileselect;
|
|
41424
41440
|
}
|
|
@@ -41511,6 +41527,10 @@ class Hyperlink {
|
|
|
41511
41527
|
} else {
|
|
41512
41528
|
let modalFileSelect = this.builderStuff.querySelector('.is-modal.fileselect');
|
|
41513
41529
|
|
|
41530
|
+
if (this.builder.opts.assetRefresh) {
|
|
41531
|
+
modalFileSelect.querySelector('iframe').src = this.builder.opts.fileselect;
|
|
41532
|
+
}
|
|
41533
|
+
|
|
41514
41534
|
if (modalFileSelect.querySelector('iframe').src === 'about:blank') {
|
|
41515
41535
|
modalFileSelect.querySelector('iframe').src = this.builder.opts.fileselect;
|
|
41516
41536
|
}
|
|
@@ -42940,6 +42960,10 @@ class Video {
|
|
|
42940
42960
|
let modalVideoSelect = builderStuff.querySelector('.is-modal.videoselect');
|
|
42941
42961
|
let iframe = modalVideoSelect.querySelector('iframe');
|
|
42942
42962
|
|
|
42963
|
+
if (this.builder.opts.assetRefresh) {
|
|
42964
|
+
iframe.src = this.builder.opts.videoSelect;
|
|
42965
|
+
}
|
|
42966
|
+
|
|
42943
42967
|
if (iframe.src === 'about:blank') {
|
|
42944
42968
|
iframe.src = this.builder.opts.videoSelect;
|
|
42945
42969
|
}
|
|
@@ -53625,6 +53649,10 @@ class Rte {
|
|
|
53625
53649
|
let modalImageSelect = this.builderStuff.querySelector('.is-modal.imageselect');
|
|
53626
53650
|
let iframe = modalImageSelect.querySelector('iframe');
|
|
53627
53651
|
|
|
53652
|
+
if (this.builder.opts.assetRefresh) {
|
|
53653
|
+
iframe.src = this.builder.opts.imageselect;
|
|
53654
|
+
}
|
|
53655
|
+
|
|
53628
53656
|
if (iframe.src === 'about:blank') {
|
|
53629
53657
|
iframe.src = this.builder.opts.imageselect;
|
|
53630
53658
|
}
|
|
@@ -57621,6 +57649,8 @@ class ContentBuilder {
|
|
|
57621
57649
|
imageSelect: '',
|
|
57622
57650
|
fileSelect: '',
|
|
57623
57651
|
videoSelect: '',
|
|
57652
|
+
assetRefresh: true,
|
|
57653
|
+
// asset manager specified in imageSelect, fileSelect & videoSelect will always refreshed on click/open
|
|
57624
57654
|
customTags: [],
|
|
57625
57655
|
buttons: ['bold', 'italic', 'underline', 'formatting', 'color', 'align', 'textsettings', 'createLink', 'tags', '|', 'undo', 'redo', 'zoom', 'more'],
|
|
57626
57656
|
buttonsMore: ['icon', 'image', '|', 'list', 'font', 'formatPara', '|', 'html', 'preferences'],
|
|
@@ -58370,6 +58400,8 @@ class ContentBuilder {
|
|
|
58370
58400
|
this.colTool.showColumnTool(this.activeCol);
|
|
58371
58401
|
}
|
|
58372
58402
|
}
|
|
58403
|
+
|
|
58404
|
+
this.util.checkEmpty(); // for multiple instances check
|
|
58373
58405
|
},
|
|
58374
58406
|
onAdd: evt => {
|
|
58375
58407
|
var itemEl = evt.item;
|
|
@@ -59435,10 +59467,15 @@ class ContentBuilder {
|
|
|
59435
59467
|
} // Css loaded. Now we can get UI styles.
|
|
59436
59468
|
|
|
59437
59469
|
|
|
59438
|
-
const util = this.util;
|
|
59439
|
-
|
|
59440
|
-
this.
|
|
59441
|
-
|
|
59470
|
+
const util = this.util; // util.getUIStyles();
|
|
59471
|
+
// this.setUIColorRefresh();
|
|
59472
|
+
// if(this.opts.onThemeChange) this.opts.onThemeChange();
|
|
59473
|
+
|
|
59474
|
+
setTimeout(() => {
|
|
59475
|
+
util.getUIStyles();
|
|
59476
|
+
this.setUIColorRefresh();
|
|
59477
|
+
if (this.opts.onThemeChange) this.opts.onThemeChange();
|
|
59478
|
+
}, 300);
|
|
59442
59479
|
});
|
|
59443
59480
|
document.head.appendChild(link);
|
|
59444
59481
|
} else {
|
|
@@ -59454,10 +59491,15 @@ class ContentBuilder {
|
|
|
59454
59491
|
} // Css loaded. Now we can get UI styles.
|
|
59455
59492
|
|
|
59456
59493
|
|
|
59457
|
-
const util = this.util;
|
|
59458
|
-
|
|
59459
|
-
this.
|
|
59460
|
-
|
|
59494
|
+
const util = this.util; // util.getUIStyles();
|
|
59495
|
+
// this.setUIColorRefresh();
|
|
59496
|
+
// if(this.opts.onThemeChange) this.opts.onThemeChange();
|
|
59497
|
+
|
|
59498
|
+
setTimeout(() => {
|
|
59499
|
+
util.getUIStyles();
|
|
59500
|
+
this.setUIColorRefresh();
|
|
59501
|
+
if (this.opts.onThemeChange) this.opts.onThemeChange();
|
|
59502
|
+
}, 1000);
|
|
59461
59503
|
}
|
|
59462
59504
|
}
|
|
59463
59505
|
|