1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-12-23 23:02:08 +03:00

Lexical: Added id support for all main block types

This commit is contained in:
Dan Brown
2024-08-11 16:08:51 +01:00
parent ebf95f637a
commit ec965f28c0
13 changed files with 486 additions and 59 deletions

View File

@@ -82,6 +82,11 @@ export function createPageEditorInstance(container: HTMLElement, htmlContent: st
}
});
// @ts-ignore
window.debugEditorState = () => {
console.log(editor.getEditorState().toJSON());
};
const context: EditorUiContext = buildEditorUI(container, editArea, editWrap, editor, options);
registerCommonNodeMutationListeners(context);