You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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().
#62
Open
lwelcom opened this issue
Oct 18, 2023
· 2 comments
Describe the bug
"verbum": "^0.5.0",
const onChange = (state: string, editor?: any) => {
console.log(state, editor, "-----------------------editor");
editor?.update(() => {
const editorState = editor.getEditorState();
console.log(editorState, "-------------------------editorState");
})
The text was updated successfully, but these errors were encountered: