@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.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.
|
21896
|
+
return "2.2.6";
|
21895
21897
|
}
|
21896
21898
|
switchPageHeaderEditor() {
|
21897
21899
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|