Skip to main content

Module: @lexical/devtools-core

Type Aliases

LexicalCommandLog

Ƭ LexicalCommandLog: ReadonlyArray<LexicalCommand<unknown> & { payload: unknown }>

Defined in

packages/lexical-devtools-core/src/useLexicalCommandsLog.ts:14

Functions

TreeView

TreeView(props): ReactNode

Parameters

NameType
props{ editorState: EditorState ; generateContent: (exportDOM: boolean) => Promise<string> ; setEditorReadOnly: (isReadonly: boolean) => void ; setEditorState: (state: EditorState, options?: EditorSetOptions) => void ; timeTravelButtonClassName: string ; timeTravelPanelButtonClassName: string ; timeTravelPanelClassName: string ; timeTravelPanelSliderClassName: string ; treeTypeButtonClassName: string ; viewClassName: string } & RefAttributes<HTMLPreElement>

Returns

ReactNode

Defined in

packages/lexical-devtools-core/src/TreeView.tsx:16


generateContent

generateContent(editor, commandsLog, exportDOM): string

Parameters

NameType
editorLexicalEditor
commandsLogreadonly LexicalCommand<unknown> & { payload: unknown }[]
exportDOMboolean

Returns

string

Defined in

packages/lexical-devtools-core/src/generateContent.ts:87


registerLexicalCommandLogger

registerLexicalCommandLogger(editor, setLoggedCommands): () => void

Parameters

NameType
editorLexicalEditor
setLoggedCommands(v: (oldValue: LexicalCommandLog) => LexicalCommandLog) => void

Returns

fn

▸ (): void

Returns

void

Defined in

packages/lexical-devtools-core/src/useLexicalCommandsLog.ts:18


useLexicalCommandsLog

useLexicalCommandsLog(editor): LexicalCommandLog

Parameters

NameType
editorLexicalEditor

Returns

LexicalCommandLog

Defined in

packages/lexical-devtools-core/src/useLexicalCommandsLog.ts:55