1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Lexical: Added RTL/LTR actions

Kinda useless though due to Lexical reconciler :(
This commit is contained in:
Dan Brown
2024-09-16 12:29:46 +01:00
parent 5f46d71af0
commit 03490d6597
5 changed files with 70 additions and 9 deletions

View File

@ -51,7 +51,14 @@ import {
textColor,
underline
} from "./defaults/buttons/inline-formats";
import {alignCenter, alignJustify, alignLeft, alignRight} from "./defaults/buttons/alignments";
import {
alignCenter,
alignJustify,
alignLeft,
alignRight,
directionLTR,
directionRTL
} from "./defaults/buttons/alignments";
import {
bulletList,
indentDecrease,
@ -117,11 +124,13 @@ export function getMainEditorFullToolbar(): EditorContainerUiElement {
]),
// Alignment
new EditorOverflowContainer(4, [
new EditorOverflowContainer(6, [ // TODO - Dynamic
new EditorButton(alignLeft),
new EditorButton(alignCenter),
new EditorButton(alignRight),
new EditorButton(alignJustify),
new EditorButton(directionLTR), // TODO - Dynamic
new EditorButton(directionRTL), // TODO - Dynamic
]),
// Lists