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

Lexical: Added block indenting capability

Needed a custom implementation due to hardcoded defaults for Lexical
default indenting.
This commit is contained in:
Dan Brown
2024-09-10 15:55:46 +01:00
parent 2036438203
commit 5083188ed8
11 changed files with 193 additions and 25 deletions

View File

@ -52,7 +52,13 @@ import {
underline
} from "./defaults/buttons/inline-formats";
import {alignCenter, alignJustify, alignLeft, alignRight} from "./defaults/buttons/alignments";
import {bulletList, numberList, taskList} from "./defaults/buttons/lists";
import {
bulletList,
indentDecrease,
indentIncrease,
numberList,
taskList
} from "./defaults/buttons/lists";
import {
codeBlock,
details,
@ -119,10 +125,12 @@ export function getMainEditorFullToolbar(): EditorContainerUiElement {
]),
// Lists
new EditorOverflowContainer(3, [
new EditorOverflowContainer(5, [
new EditorButton(bulletList),
new EditorButton(numberList),
new EditorButton(taskList),
new EditorButton(indentDecrease),
new EditorButton(indentIncrease),
]),
// Insert types