@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.js CHANGED
@@ -17041,6 +17041,8 @@ class DocumentChange {
17041
17041
  if (text.props.fontSize !== this.viewOptions.currentFontSize || text.props.fontName !== this.viewOptions.currentFontName) {
17042
17042
  //创建新输入项
17043
17043
  const newInput = this.createNewInputText();
17044
+ this.viewOptions.currentFontName = newInput.props.fontName;
17045
+ this.viewOptions.currentFontSize = newInput.props.fontSize;
17044
17046
  //插入到文档
17045
17047
  this.insertElement(element, offset, [newInput]);
17046
17048
  this.correctInputEle(newInput, '', 0, data);
@@ -21891,7 +21893,7 @@ class DocEditor {
21891
21893
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
21892
21894
  }
21893
21895
  version() {
21894
- return "2.2.5";
21896
+ return "2.2.6";
21895
21897
  }
21896
21898
  switchPageHeaderEditor() {
21897
21899
  this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);