mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Lexical: Integrated diagram manager, added menu split button
This commit is contained in:
@@ -30,7 +30,7 @@ import {
|
||||
$insertNewBlockNodeAtSelection,
|
||||
$selectionContainsNodeType
|
||||
} from "../../../utils/selection";
|
||||
import {$isDiagramNode, $openDrawingEditorForNode} from "../../../utils/diagrams";
|
||||
import {$isDiagramNode, $openDrawingEditorForNode, showDiagramManagerForInsert} from "../../../utils/diagrams";
|
||||
import {$createLinkedImageNodeFromImageData, showImageManager} from "../../../utils/images";
|
||||
import {$showImageForm} from "../forms/objects";
|
||||
|
||||
@@ -184,6 +184,16 @@ export const diagram: EditorButtonDefinition = {
|
||||
}
|
||||
};
|
||||
|
||||
export const diagramManager: EditorButtonDefinition = {
|
||||
label: 'Drawing manager',
|
||||
action(context: EditorUiContext) {
|
||||
showDiagramManagerForInsert(context);
|
||||
},
|
||||
isActive(): boolean {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
export const media: EditorButtonDefinition = {
|
||||
label: 'Insert/edit Media',
|
||||
icon: mediaIcon,
|
||||
|
Reference in New Issue
Block a user