Merge pull request #2232 from TriliumNext/ckeditor5-alignment

feat(ckeditor): Add text alignment
This commit is contained in:
Elian Doran
2025-06-10 13:15:42 +03:00
committed by GitHub
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: ["link", "bookmark", "internallink", "includeNote", "|", "math", "mermaid", "horizontalLine", "pageBreak", "dateTime"]
},
"|",
"alignment",
"outdent",
"indent",
"|",