This page is available as Markdown at /api/editor/functions/editorprovider.md.
For the full documentation index, see /llms.txt, or
the complete corpus at /llms-full.txt.
EditorProvider
EditorProvider(
props):Element
Defined in: packages/editor/src/editor/editor-provider.tsx:39
The EditorProvider component is used to set up the editor context and configure the Portable Text Editor.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Element
Example
Section titled “Example”import {EditorProvider} from '@portabletext/editor'
function App() { return ( <EditorProvider initialConfig={{ ... }} > ... </EditorProvider> )}