feat(ckeditor): Add text alignment

This commit is contained in:
SiriusXT
2025-06-09 15:00:08 +08:00
parent ca4b8fa5ec
commit 2544c9b483
2 changed files with 7 additions and 1 deletions

View File

@@ -97,6 +97,9 @@ export function buildConfig(): EditorConfig {
reversed: true
}
},
alignment: {
options: [ "left", "right", "center", "justify"]
},
link: {
defaultProtocol: "https://",
allowedProtocols: ALLOWED_PROTOCOLS
@@ -194,6 +197,7 @@ export function buildClassicToolbar(multilineToolbar: boolean) {
items: ["imageUpload", "|", "link", "bookmark", "internallink", "includeNote", "|", "specialCharacters", "emoji", "math", "mermaid", "horizontalLine", "pageBreak", "dateTime"]
},
"|",
"alignment",
"outdent",
"indent",
"|",
@@ -249,6 +253,7 @@ export function buildFloatingToolbar() {
items: ["bookmark", "internallink", "includeNote", "|", "math", "mermaid", "horizontalLine", "pageBreak", "dateTime"]
},
"|",
"alignment",
"outdent",
"indent",
"|",