diff --git a/docs/rich-text/lexical.mdx b/docs/rich-text/lexical.mdx index e0e2b271c..e17db2d86 100644 --- a/docs/rich-text/lexical.mdx +++ b/docs/rich-text/lexical.mdx @@ -314,7 +314,7 @@ import { const yourEditorConfig; // <= your editor config here -const headlessEditor = await createHeadlessEditor({ +const headlessEditor = createHeadlessEditor({ nodes: getEnabledNodes({ editorConfig: sanitizeEditorConfig(yourEditorConfig), }),