@innovastudio/contentbuilder 1.4.19 → 1.4.20
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
@@ -49864,7 +49864,7 @@ class Image$1 {
|
|
49864
49864
|
</div>
|
49865
49865
|
|
49866
49866
|
<div class="is-modal mediaselect" style="z-index:10005" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">
|
49867
|
-
<div style="max-width
|
49867
|
+
<div style="max-width:${this.builder.mediaSelectWidth};height:${this.builder.mediaSelectHeight};padding:0;">
|
49868
49868
|
<iframe tabindex="0" style="width:100%;height:100%;border: none;display: block;" src="about:blank"></iframe>
|
49869
49869
|
</div>
|
49870
49870
|
</div>
|
@@ -79300,6 +79300,25 @@ class ContentBuilder {
|
|
79300
79300
|
});
|
79301
79301
|
}
|
79302
79302
|
|
79303
|
+
openOther(targetInput, targetAssetType, theTrigger) {
|
79304
|
+
if (this.opts.onOtherSelectClick) {
|
79305
|
+
this.opts.onOtherSelectClick({
|
79306
|
+
targetInput: targetInput,
|
79307
|
+
theTrigger: theTrigger
|
79308
|
+
});
|
79309
|
+
} else {
|
79310
|
+
let iframe;
|
79311
|
+
let modal = this.builderStuff.querySelector('.is-modal.fileselect');
|
79312
|
+
iframe = modal.querySelector('iframe');
|
79313
|
+
if (iframe.src === 'about:blank') iframe.src = this.opts.otherSelect;
|
79314
|
+
this.util.showModal(modal);
|
79315
|
+
this.targetInput = targetInput; // used by selectAsset() (see contentbuilder.js)
|
79316
|
+
|
79317
|
+
this.targetCallback = null;
|
79318
|
+
this.targetAssetType = targetAssetType;
|
79319
|
+
}
|
79320
|
+
}
|
79321
|
+
|
79303
79322
|
openAsset(targetInput, targetAssetType, theTrigger) {
|
79304
79323
|
if (targetAssetType === 'media' && (this.opts.onMediaSelectClick || this.opts.onImageSelectClick)) {
|
79305
79324
|
if (this.opts.onMediaSelectClick) {
|