Imperative API for interacting with the editor.
Your component must be a child of EditorRoot to use this hook.
EditorRoot
const CustomComponent = ({ open, onOpenChange }: LinkSelectorProps) => { const { editor } = useEditor(); ... } <EditorRoot> <CustomComponent/> </EditorRoot>
All methods are available here Editor