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

Lexical: Improved table row copy/paste

Added safeguarding/matching of source/target sizes to prevent broken
tables.
This commit is contained in:
Dan Brown
2024-08-22 10:08:08 +01:00
parent ddf5f2543c
commit 8a13a9df80
8 changed files with 132 additions and 31 deletions

View File

@@ -20,7 +20,10 @@ export function buildEditorUI(container: HTMLElement, element: HTMLElement, scro
editorDOM: element,
scrollDOM: scrollContainer,
manager,
translate: (text: string): string => text,
translate: (text: string): string => text, // TODO - Implement
error(error: string): void {
window.$events.error(error); // TODO - Translate
},
options,
};
manager.setContext(context);