@haluo/biz 2.0.8 → 2.0.9

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/dist/haluo-biz.js CHANGED
@@ -1832,7 +1832,7 @@ const _sfc_main = {
1832
1832
  me.editorDom = document.getElementById("editor-content");
1833
1833
  me.editorDom.addEventListener("blur", this.canSetAlign);
1834
1834
  if (!window.Squire) {
1835
- import("./squire-raw.68995d75.js").then(function() {
1835
+ import("./squire-raw.61527b92.js").then(function() {
1836
1836
  me.initSquire();
1837
1837
  });
1838
1838
  } else {
@@ -2379,6 +2379,7 @@ const _sfc_main = {
2379
2379
  this.parseHtml(data, essayPicRelVOList).then((res) => {
2380
2380
  this.editorDom.innerHTML = "";
2381
2381
  this.editor.insertElement(res);
2382
+ this.editor.saveUndoState();
2382
2383
  this.updateData();
2383
2384
  });
2384
2385
  },
@@ -2381,6 +2381,7 @@
2381
2381
  this.parseHtml(data, essayPicRelVOList).then((res) => {
2382
2382
  this.editorDom.innerHTML = "";
2383
2383
  this.editor.insertElement(res);
2384
+ this.editor.saveUndoState();
2384
2385
  this.updateData();
2385
2386
  });
2386
2387
  },
@@ -6392,7 +6393,6 @@
6392
6393
  this.focus();
6393
6394
  this.setSelection(range);
6394
6395
  this._updatePath(range);
6395
- this.saveUndoState(range);
6396
6396
  if (!canObserveMutations) {
6397
6397
  this._docWasChanged();
6398
6398
  }
@@ -3241,7 +3241,6 @@
3241
3241
  this.focus();
3242
3242
  this.setSelection(range);
3243
3243
  this._updatePath(range);
3244
- this.saveUndoState(range);
3245
3244
  if (!canObserveMutations) {
3246
3245
  this._docWasChanged();
3247
3246
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@haluo/biz",
3
3
  "description": "rich text",
4
- "version": "2.0.8",
4
+ "version": "2.0.9",
5
5
  "type": "module",
6
6
  "module": "./dist/haluo-biz.js",
7
7
  "main": "./dist/haluo-biz.umd.cjs",