]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/ui/defaults/toolbars.ts
Comments: Switched to lexical editor
[bookstack] / resources / js / wysiwyg / ui / defaults / toolbars.ts
index fc413bb8f80bed8221440dd4382208c0acb87626..33468e0a23a5de953da6593b4c99d524e9af9328 100644 (file)
@@ -221,6 +221,16 @@ export function getMainEditorFullToolbar(context: EditorUiContext): EditorContai
     ]);
 }
 
+export function getBasicEditorToolbar(context: EditorUiContext): EditorContainerUiElement {
+    return new EditorSimpleClassContainer('editor-toolbar-main', [
+        new EditorButton(bold),
+        new EditorButton(italic),
+        new EditorButton(link),
+        new EditorButton(bulletList),
+        new EditorButton(numberList),
+    ]);
+}
+
 export const contextToolbars: Record<string, EditorContextToolbarDefinition> = {
     image: {
         selector: 'img:not([drawio-diagram] img)',