]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/index.ts
Lexical: Fixed strange paragraph formatting behaviour
[bookstack] / resources / js / wysiwyg / index.ts
index ffdc7d7e82cffbab217f0800341278950a740033..7ecf91d230e4fa1671108306a611ee0f0e4f12c7 100644 (file)
@@ -84,7 +84,7 @@ export function createPageEditorInstance(container: HTMLElement, htmlContent: st
 
     // @ts-ignore
     window.debugEditorState = () => {
-        console.log(editor.getEditorState().toJSON());
+        return editor.getEditorState().toJSON();
     };
 
     registerCommonNodeMutationListeners(context);