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
I need editor in other parts as well but haven't found an easier/better way to do it than lifting up the state.
Link to reproduction
.
To reproduce
Try using useEditor in your project and log the results. Using useEffect didn't help either.
Additional information
No response
The text was updated successfully, but these errors were encountered:
HamedMP
changed the title
bug: useEditor is not returning an editor instance as expect (null is returned)
bug: useEditor returns null instead of Editor when it's not used in <EditorContent>Dec 16, 2024
I noticed it works fine if it's called from a component in <EditorContent>.
The issue is that I want to show the Toolbar outside of the Editor Content. Right now it's shown below the cursor (even though it's the first component inside the EditorContent.
Provide environment information
Describe the bug
I described the bug and the workaround in this issue.
I had a menu bar from Tiptap component I used before but I couldn't get it to work as useEditor() doesn't return proper Editor instance.
I ended up using onCreate of Editor Contet and using a state to handle editor, then I can use my menu bar.
<EditorContent
extensions={extensions}
I need
editor
in other parts as well but haven't found an easier/better way to do it than lifting up the state.Link to reproduction
.
To reproduce
Try using
useEditor
in your project and log the results. UsinguseEffect
didn't help either.Additional information
No response
The text was updated successfully, but these errors were encountered: