Skip to main content

EditorHostEditorCapability

interface
interface EditorHostEditorCapability

Import

import { EditorHostEditorCapability } from '@modular/sdk/editor';

Members18

$append
(parentKey: string, child: LexicalNode) => void
$create
(type: string, props?: Record<string, unknown>, key?: string) => ElementNode
$createExtensionDecoratorNode
(type: string, props?: Record<string, unknown>, key?: string) => DecoratorNode<ReactNode>
$createExtensionElementNode
(type: string, props?: Record<string, unknown>, key?: string) => ElementNode
$createExtensionFigureNode
(type: string, props?: Record<string, unknown>, key?: string) => DecoratorNode<ReactNode>
$insert
(siblingKey: string, child: LexicalNode, placement: 'before' | 'after') => void
$isExtensionDecoratorNode
(node: LexicalNode | null | undefined) => boolean
$isExtensionElementNode
(node: LexicalNode | null | undefined) => boolean
$move
(childKey: string, beforeKey: string | null) => void
ExtensionElementNode
KlassConstructor<typeof ElementNode>
ExtensionRendererNode
KlassConstructor<(key?: string) => DecoratorNode<ReactNode>>
externalFrames
EditorExternalFrameCapability
TOGGLE_AUDIO_RECORDING_COMMAND
LexicalCommand<void>
registerElement
(type: string, definition: ExtensionElementDefinition) => () => void
registerExtensionNodeRenderer
(type: string, renderer: ExtensionNodeRenderer, config?: Record<string, unknown>) => () => void
registerSlashCommand
(command: ExtensionSlashCommand) => () => void
useChildren
(nodeKey: string) => readonly ExtensionElementChildHandle[]
useNodeState
(nodeKey: string) => readonly [Record<string, unknown>, (next: Record<string, unknown>) => void]