mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Lexical: Updated toolbar & text node exporting
- Updated toolbar to match existing editor, including dynamic RTL/LTR controls. - Updated text node handling to not include spans and extra classes when not needed. Added & update tests to cover.
This commit is contained in:
@ -32,7 +32,7 @@ export function buildEditorUI(container: HTMLElement, element: HTMLElement, scro
|
||||
manager.setContext(context);
|
||||
|
||||
// Create primary toolbar
|
||||
manager.setToolbar(getMainEditorFullToolbar());
|
||||
manager.setToolbar(getMainEditorFullToolbar(context));
|
||||
|
||||
// Register modals
|
||||
for (const key of Object.keys(modals)) {
|
||||
|
Reference in New Issue
Block a user