mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
dc1a40ea74
Structured UI logical to be fairly standard and mostly covered via a base class that handles context and core dom work.
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import {EditorButton} from "./framework/buttons";
|
|
import {
|
|
blockquote, bold, code,
|
|
dangerCallout,
|
|
h2, h3, h4, h5,
|
|
infoCallout, italic, link, paragraph,
|
|
redo, strikethrough, subscript,
|
|
successCallout, superscript, underline,
|
|
undo,
|
|
warningCallout
|
|
} from "./defaults/button-definitions";
|
|
import {EditorContainerUiElement, EditorFormatMenu} from "./framework/containers";
|
|
|
|
|
|
export function getMainEditorFullToolbar(): EditorContainerUiElement {
|
|
return new EditorContainerUiElement([
|
|
new EditorButton(undo),
|
|
new EditorButton(redo),
|
|
|
|
new EditorFormatMenu([
|
|
new EditorButton(h2),
|
|
new EditorButton(h3),
|
|
new EditorButton(h4),
|
|
new EditorButton(h5),
|
|
new EditorButton(blockquote),
|
|
new EditorButton(paragraph),
|
|
new EditorButton(infoCallout),
|
|
new EditorButton(successCallout),
|
|
new EditorButton(warningCallout),
|
|
new EditorButton(dangerCallout),
|
|
]),
|
|
|
|
new EditorButton(bold),
|
|
new EditorButton(italic),
|
|
new EditorButton(underline),
|
|
new EditorButton(strikethrough),
|
|
new EditorButton(superscript),
|
|
new EditorButton(subscript),
|
|
new EditorButton(code),
|
|
|
|
new EditorButton(link),
|
|
]);
|
|
} |