EditorRoot to use this hook.
Utils
useEditor
Imperative API for interacting with the editor.
Your component must be a child of
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Imperative API for interacting with the editor.
EditorRoot to use this hook.
const CustomComponent = ({ open, onOpenChange }: LinkSelectorProps) => {
const { editor } = useEditor();
...
}
<EditorRoot>
<CustomComponent/>
</EditorRoot>