1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Lexical: Split helpers to utils, refactored files

This commit is contained in:
Dan Brown
2024-08-03 18:14:01 +01:00
parent e94ad78ea7
commit efec752985
39 changed files with 152 additions and 136 deletions

View File

@ -1,6 +1,5 @@
import {EditorButton} from "./framework/buttons";
import {EditorContainerUiElement, EditorSimpleClassContainer, EditorUiElement} from "./framework/core";
import {$selectionContainsNodeType, el} from "../helpers";
import {EditorFormatMenu} from "./framework/blocks/format-menu";
import {FormatPreviewButton} from "./framework/blocks/format-preview-button";
import {EditorDropdownButton} from "./framework/blocks/dropdown-button";
@ -65,6 +64,8 @@ import {
unlink
} from "./defaults/buttons/objects";
import {$isTableNode} from "@lexical/table";
import {$selectionContainsNodeType} from "../utils/selection";
import {el} from "../utils/dom";
export function getMainEditorFullToolbar(): EditorContainerUiElement {
return new EditorSimpleClassContainer('editor-toolbar-main', [