@innovastudio/contentbuilder 1.4.126 → 1.4.128

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.4.126",
4
+ "version": "1.4.128",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -11326,6 +11326,7 @@ class UndoRedo {
11326
11326
  this.builder.opts.onRender();
11327
11327
  }
11328
11328
  saveForUndo(checkLater) {
11329
+ if (this.builder.onBeforeSaveForUndo) this.builder.onBeforeSaveForUndo();
11329
11330
  if (this.builder.undoRedoStyles) {
11330
11331
  if (this.undoList[120]) {
11331
11332
  let saves = this.undoList[120][0];
@@ -79562,7 +79563,7 @@ class ContentBuilder {
79562
79563
  selection.addRange(range);
79563
79564
  }
79564
79565
  }
79565
- document.execCommand('insertHTML', false, sPastedText);
79566
+ this.doc.execCommand('insertHTML', false, sPastedText);
79566
79567
  if (this.activeCol) {
79567
79568
  /*
79568
79569
  Additional Cleanup: