verbum
verbum copied to clipboard
Lexical.dev.js:9060 Uncaught Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read().
Describe the bug "verbum": "^0.5.0",
- Unable to initialize default value
- onChange cannot be converted into html code
const onChange = (state: string, editor?: any) => { console.log(state, editor, "-----------------------editor");
editor?.update(() => { const editorState = editor.getEditorState(); console.log(editorState, "-------------------------editorState");
const jsonString = JSON.stringify(editorState);
console.log(jsonString, '-------------------------jsonString');
const htmlString = $generateHtmlFromNodes(editor, null);
console.log(htmlString, '-------------------------htmlString');
})
I have the same problem, please help me
Same here.