@kaitify/core 0.0.1-beta.29 → 0.0.1-beta.30

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.
@@ -38151,7 +38151,7 @@ class Editor {
38151
38151
  * 1. 不会触发onChange事件;
38152
38152
  * 2. 不会渲染真实光标
38153
38153
  */
38154
- async review(value, unPushHistory = false) {
38154
+ async review(value) {
38155
38155
  if (typeof this.beforeUpdateView == "function") this.beforeUpdateView.apply(this);
38156
38156
  this.stackNodes = this.htmlParseNode(value || "");
38157
38157
  this.formatRules.forEach((rule) => {
@@ -38163,9 +38163,7 @@ class Editor {
38163
38163
  const useDefault = typeof this.onUpdateView == "function" ? await this.onUpdateView.apply(this, [true]) : true;
38164
38164
  if (useDefault) defaultUpdateView.apply(this, [true]);
38165
38165
  this.setDomObserve();
38166
- if (!unPushHistory) {
38167
- this.history.setState(this.stackNodes, this.selection);
38168
- }
38166
+ this.history.setState(this.stackNodes, this.selection);
38169
38167
  this.oldStackNodes = this.stackNodes.map((item) => item.fullClone());
38170
38168
  if (typeof this.afterUpdateView == "function") this.afterUpdateView.apply(this);
38171
38169
  }