@hailin-zheng/editor-core 2.2.25 → 2.2.26

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/index.js CHANGED
@@ -21684,12 +21684,13 @@ class DocEditor {
21684
21684
  // if (this.docCtx.refreshType) {
21685
21685
  // this.triggerDocChange();
21686
21686
  // }
21687
+ const trackChangeState = this.trackChangeState;
21687
21688
  this.flushTask = () => {
21688
21689
  //读取变更记录,可能会同步影响文档内容
21689
21690
  const isChanged = this.readDocChangeLog();
21690
21691
  this.refreshDocument();
21691
21692
  //触发文档改变
21692
- if (isChanged) {
21693
+ if (isChanged && trackChangeState) {
21693
21694
  this.triggerDocChange();
21694
21695
  }
21695
21696
  this.flushTask = null;
@@ -23022,7 +23023,7 @@ class DocEditor {
23022
23023
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
23023
23024
  }
23024
23025
  version() {
23025
- return "2.2.25";
23026
+ return "2.2.26";
23026
23027
  }
23027
23028
  switchPageHeaderEditor() {
23028
23029
  this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);