-
Say I have this Plate component, not wrapped inside any function MyEditor() {
const onKeyDown = useCallback(() => { ... }, []);
return (
<Plate
editableProps={{ onKeyDown }}
// other props
/>
);
} I want to access the Slate Sorry if this question sounds too trivial but I can't find any info on this in the documentations or the code examples on the website. |
Beta Was this translation helpful? Give feedback.
Answered by
zbeyens
Jan 26, 2023
Replies: 1 comment 2 replies
-
We generally define handlers in plugins but the only ways would be to wrap |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
joulev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We generally define handlers in plugins but the only ways would be to wrap
PlateProvider
or pass your customeditor
in prop