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

Lexical: Added context toolbar placement, added link toolbar

Also added some basic context toolbar styling
This commit is contained in:
Dan Brown
2024-06-30 19:52:09 +01:00
parent c9a03c5b01
commit b1c489090e
7 changed files with 75 additions and 6 deletions

View File

@ -6,7 +6,7 @@ import {
infoCallout, italic, link, numberList, paragraph,
redo, source, strikethrough, subscript,
successCallout, superscript, table, taskList, textColor, underline,
undo,
undo, unlink,
warningCallout
} from "./defaults/button-definitions";
import {EditorContainerUiElement, EditorSimpleClassContainer, EditorUiContext, EditorUiElement} from "./framework/core";
@ -91,4 +91,11 @@ export function getMainEditorFullToolbar(): EditorContainerUiElement {
export function getImageToolbarContent(): EditorUiElement[] {
return [new EditorButton(image)];
}
export function getLinkToolbarContent(): EditorUiElement[] {
return [
new EditorButton(link),
new EditorButton(unlink),
];
}