Browse Source

fix: v2.4.7 一轮测试修复

wzl 6 months ago
parent
commit
81339e913f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/core/src/editor/text_editor.js

+ 1 - 1
packages/core/src/editor/text_editor.js

@@ -1489,7 +1489,7 @@ export class TextEditor {
       if (props[item] === this.textStyle[item]) continue
 
       if (item === 'alignType') {
-        if (!this.selectedCharRange) {
+        if (!this.selectedCharRange && this.state === 2) {
           await this.messageHandler.sendWithPromise('SetTextAligningSection', {
             editAreaPtr: this.editAreaPtr,
             alignType: props.alignType,