Module: @lexical/devtools-core
Type Aliases
LexicalCommandLog
Ƭ LexicalCommandLog: ReadonlyArray
<LexicalCommand
<unknown
> & { payload
: unknown
}>
Defined in
lexical-devtools-core/src/useLexicalCommandsLog.ts:14
Functions
TreeView
▸ TreeView(«destructured»
): JSX.Element
Parameters
Name | Type |
---|---|
«destructured» | Object |
› 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 |
Returns
JSX.Element
Defined in
lexical-devtools-core/src/TreeView.tsx:14
generateContent
▸ generateContent(editor
, commandsLog
, exportDOM
): string
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
commandsLog | readonly LexicalCommand <unknown > & { payload : unknown }[] |
exportDOM | boolean |
Returns
string
Defined in
lexical-devtools-core/src/generateContent.ts:74
registerLexicalCommandLogger
▸ registerLexicalCommandLogger(editor
, setLoggedCommands
): () => void
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
setLoggedCommands | (v : (oldValue : LexicalCommandLog ) => LexicalCommandLog ) => void |
Returns
fn
▸ (): void
Returns
void
Defined in
lexical-devtools-core/src/useLexicalCommandsLog.ts:18
useLexicalCommandsLog
▸ useLexicalCommandsLog(editor
): LexicalCommandLog
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
Returns
Defined in
lexical-devtools-core/src/useLexicalCommandsLog.ts:55