mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 02:30:42 +01:00
Merge pull request #2232 from TriliumNext/ckeditor5-alignment
feat(ckeditor): Add text alignment
This commit is contained in:
@@ -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",
|
||||
"|",
|
||||
|
||||
Reference in New Issue
Block a user