@hailin-zheng/editor-core 2.2.5 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- package/index-cjs.js +3 -1
- package/index-cjs.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
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.
|
21925
|
+
return "2.2.6";
|
21924
21926
|
}
|
21925
21927
|
switchPageHeaderEditor() {
|
21926
21928
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|