@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-cjs.js +3 -2
- package/index-cjs.js.map +1 -1
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -21713,12 +21713,13 @@ class DocEditor {
|
|
21713
21713
|
// if (this.docCtx.refreshType) {
|
21714
21714
|
// this.triggerDocChange();
|
21715
21715
|
// }
|
21716
|
+
const trackChangeState = this.trackChangeState;
|
21716
21717
|
this.flushTask = () => {
|
21717
21718
|
//读取变更记录,可能会同步影响文档内容
|
21718
21719
|
const isChanged = this.readDocChangeLog();
|
21719
21720
|
this.refreshDocument();
|
21720
21721
|
//触发文档改变
|
21721
|
-
if (isChanged) {
|
21722
|
+
if (isChanged && trackChangeState) {
|
21722
21723
|
this.triggerDocChange();
|
21723
21724
|
}
|
21724
21725
|
this.flushTask = null;
|
@@ -23051,7 +23052,7 @@ class DocEditor {
|
|
23051
23052
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
23052
23053
|
}
|
23053
23054
|
version() {
|
23054
|
-
return "2.2.
|
23055
|
+
return "2.2.26";
|
23055
23056
|
}
|
23056
23057
|
switchPageHeaderEditor() {
|
23057
23058
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|