@innovastudio/contentbuilder 1.0.63 → 1.0.68
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
|
}
|
|
@@ -52202,6 +52226,9 @@ class Preferences {
|
|
|
52202
52226
|
}
|
|
52203
52227
|
}
|
|
52204
52228
|
}
|
|
52229
|
+
} else {
|
|
52230
|
+
this.builder.setUIColor('', '');
|
|
52231
|
+
this.builder.renderIframeLater = true;
|
|
52205
52232
|
}
|
|
52206
52233
|
|
|
52207
52234
|
if (!this.builder.renderIframeLater) {
|
|
@@ -53625,6 +53652,10 @@ class Rte {
|
|
|
53625
53652
|
let modalImageSelect = this.builderStuff.querySelector('.is-modal.imageselect');
|
|
53626
53653
|
let iframe = modalImageSelect.querySelector('iframe');
|
|
53627
53654
|
|
|
53655
|
+
if (this.builder.opts.assetRefresh) {
|
|
53656
|
+
iframe.src = this.builder.opts.imageselect;
|
|
53657
|
+
}
|
|
53658
|
+
|
|
53628
53659
|
if (iframe.src === 'about:blank') {
|
|
53629
53660
|
iframe.src = this.builder.opts.imageselect;
|
|
53630
53661
|
}
|
|
@@ -57621,6 +57652,8 @@ class ContentBuilder {
|
|
|
57621
57652
|
imageSelect: '',
|
|
57622
57653
|
fileSelect: '',
|
|
57623
57654
|
videoSelect: '',
|
|
57655
|
+
assetRefresh: true,
|
|
57656
|
+
// asset manager specified in imageSelect, fileSelect & videoSelect will always refreshed on click/open
|
|
57624
57657
|
customTags: [],
|
|
57625
57658
|
buttons: ['bold', 'italic', 'underline', 'formatting', 'color', 'align', 'textsettings', 'createLink', 'tags', '|', 'undo', 'redo', 'zoom', 'more'],
|
|
57626
57659
|
buttonsMore: ['icon', 'image', '|', 'list', 'font', 'formatPara', '|', 'html', 'preferences'],
|
|
@@ -59437,10 +59470,15 @@ class ContentBuilder {
|
|
|
59437
59470
|
} // Css loaded. Now we can get UI styles.
|
|
59438
59471
|
|
|
59439
59472
|
|
|
59440
|
-
const util = this.util;
|
|
59441
|
-
|
|
59442
|
-
this.
|
|
59443
|
-
|
|
59473
|
+
const util = this.util; // util.getUIStyles();
|
|
59474
|
+
// this.setUIColorRefresh();
|
|
59475
|
+
// if(this.opts.onThemeChange) this.opts.onThemeChange();
|
|
59476
|
+
|
|
59477
|
+
setTimeout(() => {
|
|
59478
|
+
util.getUIStyles();
|
|
59479
|
+
this.setUIColorRefresh();
|
|
59480
|
+
if (this.opts.onThemeChange) this.opts.onThemeChange();
|
|
59481
|
+
}, 300);
|
|
59444
59482
|
});
|
|
59445
59483
|
document.head.appendChild(link);
|
|
59446
59484
|
} else {
|
|
@@ -59456,10 +59494,15 @@ class ContentBuilder {
|
|
|
59456
59494
|
} // Css loaded. Now we can get UI styles.
|
|
59457
59495
|
|
|
59458
59496
|
|
|
59459
|
-
const util = this.util;
|
|
59460
|
-
|
|
59461
|
-
this.
|
|
59462
|
-
|
|
59497
|
+
const util = this.util; // util.getUIStyles();
|
|
59498
|
+
// this.setUIColorRefresh();
|
|
59499
|
+
// if(this.opts.onThemeChange) this.opts.onThemeChange();
|
|
59500
|
+
|
|
59501
|
+
setTimeout(() => {
|
|
59502
|
+
util.getUIStyles();
|
|
59503
|
+
this.setUIColorRefresh();
|
|
59504
|
+
if (this.opts.onThemeChange) this.opts.onThemeChange();
|
|
59505
|
+
}, 1000);
|
|
59463
59506
|
}
|
|
59464
59507
|
}
|
|
59465
59508
|
|