Skip to main content

Variable: ReactPluginHostExtension

const ReactPluginHostExtension: LexicalExtension<ExtensionConfigBase, "@etrepum/lexical-builder/ReactPluginHost", object, unknown>

This extension provides a React host for editors that are not built with LexicalExtensionComposer (e.g. you are using Vanilla JS or some other framework).

You must use mountReactPluginHost for any React content to work. Afterwards, you may use mountReactExtensionComponent to render UI for a specific React Extension. mountReactPluginComponent and mountReactPluginElement can be used to render legacy React plug-ins (or any React content).

Defined in

ReactPluginHostExtension.tsx:140