Skip to content

Auto Save #1450

Discussion options

You must be logged in to vote

I came here looking for solution to the same problem. The thing is that Plate doesn't have the same onFocus and onBlur events as Slate has.

I found out that there is a hook to use: useEventEditorSelectors.focus(); will give you the id of the last focused editor. Similar for blur(). Hope this helps you.

Note that you don't need to call the hook from inside the <Plate> editor, you can call it anywhere, it hooks into their global zustand store I guess.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zbeyens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants