editorExtension
functionDeclare a node that lives inside the document editor. This is the renderer-native lane. The module runs in the host's own renderer and shares its `lexical` and `react` instances through a live handle, and registers into the host's own editor registries. There is no RPC boundary and no webview, which is what separates it from `view` and `widget`. The `module` you point at imports from `@modular/sdk/editor` and must default-export a `defineExtension({...})` value. Anything the host can insert into a document body belongs here; use `canvasElement` for the embedded canvas instead.
Import
import { editorExtension } from '@modular/sdk';Notes
- category
- Authoring