1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Lexical: Added list support, started todo

This commit is contained in:
Dan Brown
2024-07-17 16:38:20 +01:00
parent ea4c50c2c2
commit b367490edc
4 changed files with 170 additions and 32 deletions

View File

@ -1,5 +1,8 @@
import {EditorButton} from "./framework/buttons";
import {
alignCenter, alignJustify,
alignLeft,
alignRight,
blockquote, bold, bulletList, clearFormating, code, codeBlock,
dangerCallout, details, editCodeBlock, fullscreen,
h2, h3, h4, h5, highlightColor, horizontalRule, image,
@ -62,6 +65,14 @@ export function getMainEditorFullToolbar(): EditorContainerUiElement {
new EditorButton(clearFormating),
]),
// Alignment
new EditorOverflowContainer(4, [
new EditorButton(alignLeft),
new EditorButton(alignCenter),
new EditorButton(alignRight),
new EditorButton(alignJustify),
]),
// Lists
new EditorOverflowContainer(3, [
new EditorButton(bulletList),