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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user