1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

Lexical: Added toolbar scroll/resize handling

Also added smarter above/below positioning to respond if toolbar would
be off the bottom of the editor, and added hide/show when they'd go
outside editor scroll bounds.
This commit is contained in:
Dan Brown
2024-07-19 18:12:51 +01:00
parent c7c0df0964
commit 63f4b42453
7 changed files with 65 additions and 16 deletions

View File

@@ -60,7 +60,7 @@ export function createPageEditorInstance(container: HTMLElement, htmlContent: st
}
});
const context: EditorUiContext = buildEditorUI(container, editArea, editor, options);
const context: EditorUiContext = buildEditorUI(container, editArea, editWrap, editor, options);
registerCommonNodeMutationListeners(context);
return new SimpleWysiwygEditorInterface(editor);