@hailin-zheng/editor-core 2.2.5 → 2.2.6

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 CHANGED
@@ -17070,6 +17070,8 @@ class DocumentChange {
17070
17070
  if (text.props.fontSize !== this.viewOptions.currentFontSize || text.props.fontName !== this.viewOptions.currentFontName) {
17071
17071
  //创建新输入项
17072
17072
  const newInput = this.createNewInputText();
17073
+ this.viewOptions.currentFontName = newInput.props.fontName;
17074
+ this.viewOptions.currentFontSize = newInput.props.fontSize;
17073
17075
  //插入到文档
17074
17076
  this.insertElement(element, offset, [newInput]);
17075
17077
  this.correctInputEle(newInput, '', 0, data);
@@ -21920,7 +21922,7 @@ class DocEditor {
21920
21922
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
21921
21923
  }
21922
21924
  version() {
21923
- return "2.2.5";
21925
+ return "2.2.6";
21924
21926
  }
21925
21927
  switchPageHeaderEditor() {
21926
21928
  this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);