@innovastudio/contentbox 1.0.37 → 1.0.38

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.37",
3
+ "version": "1.0.38",
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.65",
42
+ "@innovastudio/contentbuilder": "^1.0.66",
43
43
  "axios": "^0.21.4",
44
44
  "cors": "^2.8.5",
45
45
  "express": "^4.17.1",
@@ -49352,6 +49352,10 @@ class Image {
49352
49352
  let modalImageSelect = builderStuff.querySelector('.is-modal.imageselect');
49353
49353
  let iframe = modalImageSelect.querySelector('iframe');
49354
49354
 
49355
+ if (this.builder.opts.assetRefresh) {
49356
+ iframe.src = this.builder.opts.imageselect;
49357
+ }
49358
+
49355
49359
  if (iframe.src === 'about:blank') {
49356
49360
  iframe.src = this.builder.opts.imageselect;
49357
49361
  }
@@ -49374,6 +49378,10 @@ class Image {
49374
49378
  let modalImageSelect = builderStuff.querySelector('.is-modal.imageselect');
49375
49379
  let iframe = modalImageSelect.querySelector('iframe');
49376
49380
 
49381
+ if (this.builder.opts.assetRefresh) {
49382
+ iframe.src = this.builder.opts.imageselect;
49383
+ }
49384
+
49377
49385
  if (iframe.src === 'about:blank') {
49378
49386
  iframe.src = this.builder.opts.imageselect;
49379
49387
  }
@@ -51495,6 +51503,10 @@ class Hyperlink {
51495
51503
  } else {
51496
51504
  let modalFileSelect = this.builderStuff.querySelector('.is-modal.fileselect');
51497
51505
 
51506
+ if (this.builder.opts.assetRefresh) {
51507
+ modalFileSelect.querySelector('iframe').src = this.builder.opts.fileselect;
51508
+ }
51509
+
51498
51510
  if (modalFileSelect.querySelector('iframe').src === 'about:blank') {
51499
51511
  modalFileSelect.querySelector('iframe').src = this.builder.opts.fileselect;
51500
51512
  }
@@ -51587,6 +51599,10 @@ class Hyperlink {
51587
51599
  } else {
51588
51600
  let modalFileSelect = this.builderStuff.querySelector('.is-modal.fileselect');
51589
51601
 
51602
+ if (this.builder.opts.assetRefresh) {
51603
+ modalFileSelect.querySelector('iframe').src = this.builder.opts.fileselect;
51604
+ }
51605
+
51590
51606
  if (modalFileSelect.querySelector('iframe').src === 'about:blank') {
51591
51607
  modalFileSelect.querySelector('iframe').src = this.builder.opts.fileselect;
51592
51608
  }
@@ -53016,6 +53032,10 @@ class Video {
53016
53032
  let modalVideoSelect = builderStuff.querySelector('.is-modal.videoselect');
53017
53033
  let iframe = modalVideoSelect.querySelector('iframe');
53018
53034
 
53035
+ if (this.builder.opts.assetRefresh) {
53036
+ iframe.src = this.builder.opts.videoSelect;
53037
+ }
53038
+
53019
53039
  if (iframe.src === 'about:blank') {
53020
53040
  iframe.src = this.builder.opts.videoSelect;
53021
53041
  }
@@ -63701,6 +63721,10 @@ class Rte {
63701
63721
  let modalImageSelect = this.builderStuff.querySelector('.is-modal.imageselect');
63702
63722
  let iframe = modalImageSelect.querySelector('iframe');
63703
63723
 
63724
+ if (this.builder.opts.assetRefresh) {
63725
+ iframe.src = this.builder.opts.imageselect;
63726
+ }
63727
+
63704
63728
  if (iframe.src === 'about:blank') {
63705
63729
  iframe.src = this.builder.opts.imageselect;
63706
63730
  }
@@ -67697,6 +67721,8 @@ class ContentBuilder {
67697
67721
  imageSelect: '',
67698
67722
  fileSelect: '',
67699
67723
  videoSelect: '',
67724
+ assetRefresh: true,
67725
+ // asset manager specified in imageSelect, fileSelect & videoSelect will always refreshed on click/open
67700
67726
  customTags: [],
67701
67727
  buttons: ['bold', 'italic', 'underline', 'formatting', 'color', 'align', 'textsettings', 'createLink', 'tags', '|', 'undo', 'redo', 'zoom', 'more'],
67702
67728
  buttonsMore: ['icon', 'image', '|', 'list', 'font', 'formatPara', '|', 'html', 'preferences'],