Lexical: Added initial form/modal styles

This commit is contained in:
Dan Brown
2024-07-09 20:49:47 +01:00
parent 2c96af9aea
commit 51d8044a54
5 changed files with 122 additions and 18 deletions

View File

@@ -49,6 +49,9 @@ export function createPageEditorInstance(container: HTMLElement, htmlContent: st
setEditorContentFromHtml(editor, htmlContent);
const debugView = document.getElementById('lexical-debug');
if (debugView) {
debugView.hidden = true;
}
editor.registerUpdateListener(({editorState}) => {
console.log('editorState', editorState.toJSON());
if (debugView) {