@innovastudio/contentbuilder 1.5.208 → 1.5.209

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.208",
4
+ "version": "1.5.209",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -5496,8 +5496,8 @@ class Util {
5496
5496
  // element.click();
5497
5497
 
5498
5498
  element.focus();
5499
- const range = document.createRange();
5500
- const selection = window.getSelection();
5499
+ const range = this.builder.doc.createRange();
5500
+ const selection = this.builder.win.getSelection();
5501
5501
  range.selectNodeContents(element);
5502
5502
  range.collapse(false); // false = end of element
5503
5503
 
@@ -5583,8 +5583,8 @@ class Util {
5583
5583
  // element.click();
5584
5584
 
5585
5585
  element.focus();
5586
- const range = document.createRange();
5587
- const selection = window.getSelection();
5586
+ const range = this.builder.doc.createRange();
5587
+ const selection = this.builder.win.getSelection();
5588
5588
  range.selectNodeContents(element);
5589
5589
  range.collapse(false); // false = end of element
5590
5590
 
@@ -5657,8 +5657,8 @@ class Util {
5657
5657
  }
5658
5658
  }
5659
5659
  if (targetElement) {
5660
- const range = document.createRange();
5661
- const selection = window.getSelection();
5660
+ const range = this.builder.doc.createRange();
5661
+ const selection = this.builder.win.getSelection();
5662
5662
  range.selectNodeContents(targetElement);
5663
5663
  range.collapse(false);
5664
5664
  selection.removeAllRanges();
@@ -5743,8 +5743,8 @@ class Util {
5743
5743
  // element.click();
5744
5744
 
5745
5745
  element.focus();
5746
- const range = document.createRange();
5747
- const selection = window.getSelection();
5746
+ const range = this.builder.doc.createRange();
5747
+ const selection = this.builder.win.getSelection();
5748
5748
  range.selectNodeContents(element);
5749
5749
  range.collapse(false); // false = end of element
5750
5750