> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/llms-full.txt).

# usePortableTextEditor

> **usePortableTextEditor**(): [`PortableTextEditor`](/api/editor/classes/portabletexteditor/)

Defined in: packages/editor/src/editor/usePortableTextEditor.ts:15

:::caution[Deprecated]
Use `useEditor` to get the current editor instance.

Get the current editor object from the React context.
:::

## Returns

[`PortableTextEditor`](/api/editor/classes/portabletexteditor/)