@innovastudio/contentbuilder 1.1.14 → 1.1.17
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
|
@@ -2530,6 +2530,7 @@ button:focus {
|
|
|
2530
2530
|
#_cbhtml .is-modal.createlink label,
|
|
2531
2531
|
.is-ui .is-modal.createlink label {
|
|
2532
2532
|
font-size: 14px;
|
|
2533
|
+
display: block;
|
|
2533
2534
|
}
|
|
2534
2535
|
#_cbhtml .is-modal.createlink div.is-modal-content,
|
|
2535
2536
|
.is-ui .is-modal.createlink div.is-modal-content {
|
|
@@ -46618,6 +46618,7 @@ class Image {
|
|
|
46618
46618
|
|
|
46619
46619
|
if (this.builder.opts.assetRefresh) {
|
|
46620
46620
|
iframe.src = this.builder.opts.imageselect;
|
|
46621
|
+
this.builder.opts.assetRefresh = false;
|
|
46621
46622
|
}
|
|
46622
46623
|
|
|
46623
46624
|
if (iframe.src === 'about:blank') {
|
|
@@ -46645,6 +46646,7 @@ class Image {
|
|
|
46645
46646
|
|
|
46646
46647
|
if (this.builder.opts.assetRefresh) {
|
|
46647
46648
|
iframe.src = this.builder.opts.imageselect;
|
|
46649
|
+
this.builder.opts.assetRefresh = false;
|
|
46648
46650
|
}
|
|
46649
46651
|
|
|
46650
46652
|
if (iframe.src === 'about:blank') {
|
|
@@ -48783,6 +48785,7 @@ class Hyperlink {
|
|
|
48783
48785
|
|
|
48784
48786
|
if (this.builder.opts.assetRefresh) {
|
|
48785
48787
|
modalFileSelect.querySelector('iframe').src = this.builder.opts.fileselect;
|
|
48788
|
+
this.builder.opts.assetRefresh = false;
|
|
48786
48789
|
}
|
|
48787
48790
|
|
|
48788
48791
|
if (modalFileSelect.querySelector('iframe').src === 'about:blank') {
|
|
@@ -48879,6 +48882,7 @@ class Hyperlink {
|
|
|
48879
48882
|
|
|
48880
48883
|
if (this.builder.opts.assetRefresh) {
|
|
48881
48884
|
modalFileSelect.querySelector('iframe').src = this.builder.opts.fileselect;
|
|
48885
|
+
this.builder.opts.assetRefresh = false;
|
|
48882
48886
|
}
|
|
48883
48887
|
|
|
48884
48888
|
if (modalFileSelect.querySelector('iframe').src === 'about:blank') {
|
|
@@ -53379,6 +53383,11 @@ class ColumnTool {
|
|
|
53379
53383
|
let modalImageSelect = builderStuff.querySelector('.is-modal.imageselect');
|
|
53380
53384
|
let iframe = modalImageSelect.querySelector('iframe');
|
|
53381
53385
|
|
|
53386
|
+
if (this.builder.opts.assetRefresh) {
|
|
53387
|
+
iframe.src = this.builder.opts.imageselect;
|
|
53388
|
+
this.builder.opts.assetRefresh = false;
|
|
53389
|
+
}
|
|
53390
|
+
|
|
53382
53391
|
if (iframe.src === 'about:blank') {
|
|
53383
53392
|
iframe.src = this.builder.opts.imageselect;
|
|
53384
53393
|
}
|
|
@@ -54081,6 +54090,11 @@ class ColumnTool {
|
|
|
54081
54090
|
let modalFileSelect = builderStuff.querySelector('.is-modal.fileselect');
|
|
54082
54091
|
let iframe = modalFileSelect.querySelector('iframe');
|
|
54083
54092
|
|
|
54093
|
+
if (this.builder.opts.assetRefresh) {
|
|
54094
|
+
iframe.src = this.builder.opts.fileselect;
|
|
54095
|
+
this.builder.opts.assetRefresh = false;
|
|
54096
|
+
}
|
|
54097
|
+
|
|
54084
54098
|
if (iframe.src === 'about:blank') {
|
|
54085
54099
|
iframe.src = this.builder.opts.fileselect;
|
|
54086
54100
|
}
|
|
@@ -54097,6 +54111,11 @@ class ColumnTool {
|
|
|
54097
54111
|
let modalImageSelect = builderStuff.querySelector('.is-modal.imageselect');
|
|
54098
54112
|
let iframe = modalImageSelect.querySelector('iframe');
|
|
54099
54113
|
|
|
54114
|
+
if (this.builder.opts.assetRefresh) {
|
|
54115
|
+
iframe.src = this.builder.opts.imageselect;
|
|
54116
|
+
this.builder.opts.assetRefresh = false;
|
|
54117
|
+
}
|
|
54118
|
+
|
|
54100
54119
|
if (iframe.src === 'about:blank') {
|
|
54101
54120
|
iframe.src = this.builder.opts.imageselect;
|
|
54102
54121
|
}
|
|
@@ -56622,6 +56641,8 @@ class ElementTextStyles {
|
|
|
56622
56641
|
<option value="em">em</option>
|
|
56623
56642
|
<option value="vw">vw</option>
|
|
56624
56643
|
<option value="vh">vh</option>
|
|
56644
|
+
<option value="vmin">vmin</option>
|
|
56645
|
+
<option value="vmax">vmax</option>
|
|
56625
56646
|
<option value="%">%</option>
|
|
56626
56647
|
</select>
|
|
56627
56648
|
</div>
|
|
@@ -57046,6 +57067,14 @@ class ElementTextStyles {
|
|
|
57046
57067
|
sFontSizeUnit = 'vh';
|
|
57047
57068
|
}
|
|
57048
57069
|
|
|
57070
|
+
if (s.indexOf('vmin') !== -1) {
|
|
57071
|
+
sFontSizeUnit = 'vmin';
|
|
57072
|
+
}
|
|
57073
|
+
|
|
57074
|
+
if (s.indexOf('vmax') !== -1) {
|
|
57075
|
+
sFontSizeUnit = 'vmax';
|
|
57076
|
+
}
|
|
57077
|
+
|
|
57049
57078
|
if (s.indexOf('%') !== -1) {
|
|
57050
57079
|
sFontSizeUnit = '%';
|
|
57051
57080
|
}
|
|
@@ -61733,6 +61762,7 @@ class Rte {
|
|
|
61733
61762
|
|
|
61734
61763
|
if (this.builder.opts.assetRefresh) {
|
|
61735
61764
|
iframe.src = this.builder.opts.imageselect;
|
|
61765
|
+
this.builder.opts.assetRefresh = false;
|
|
61736
61766
|
}
|
|
61737
61767
|
|
|
61738
61768
|
if (iframe.src === 'about:blank') {
|
|
@@ -66095,7 +66125,7 @@ class ContentBuilder {
|
|
|
66095
66125
|
imageSelect: '',
|
|
66096
66126
|
fileSelect: '',
|
|
66097
66127
|
videoSelect: '',
|
|
66098
|
-
assetRefresh:
|
|
66128
|
+
assetRefresh: false,
|
|
66099
66129
|
// asset manager specified in imageSelect, fileSelect & videoSelect will always refreshed on click/open
|
|
66100
66130
|
customTags: [],
|
|
66101
66131
|
buttons: ['bold', 'italic', 'underline', 'formatting', 'color', 'align', 'textsettings', 'createLink', 'tags', '|', 'undo', 'redo', 'zoom', 'more'],
|
|
@@ -67478,6 +67508,7 @@ class ContentBuilder {
|
|
|
67478
67508
|
formUpload.parentNode.parentNode.querySelector('input[type="file"]').value = '';
|
|
67479
67509
|
}
|
|
67480
67510
|
});
|
|
67511
|
+
this.opts.assetRefresh = true; // After file upload, make open asset refreshed
|
|
67481
67512
|
}
|
|
67482
67513
|
|
|
67483
67514
|
openImagePicker(currentUrl, callback) {
|