diff --git a/src/ui/component/core/TextEditor.ts b/src/ui/component/core/TextEditor.ts index a6164ac..75f8d09 100644 --- a/src/ui/component/core/TextEditor.ts +++ b/src/ui/component/core/TextEditor.ts @@ -285,8 +285,13 @@ const schema = new Schema({ if (!textAlign) return false - return { align: textAlign } + return { + align: textAlign === "justify" || textAlign === "start" ? "left" + : textAlign === "end" ? "right" + : textAlign, + } }, + priority: 51, }, ], toDOM: (node: Node) => ["div", Objects.filterNullish({