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?: NodeKey) => ElementNode
$createExtensionDecoratorNode
(type: string, props?: Record<string, unknown>, key?: NodeKey) => DecoratorNode<unknown>
$createExtensionElementNode
(type: string, props?: Record<string, unknown>, key?: NodeKey) => ElementNode
$createExtensionFigureNode
(type: string, props?: Record<string, unknown>, key?: NodeKey) => DecoratorNode<unknown>
$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
Klass<ElementNode>
ExtensionRendererNode
Klass<DecoratorNode<unknown>>
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]