Module: @lexical/devtools-core
Type Aliases
CustomPrintNodeFn
Ƭ CustomPrintNodeFn: (node
: LexicalNode
, obfuscateText?
: boolean
) => string
Type declaration
▸ (node
, obfuscateText?
): string
Parameters
Name | Type |
---|---|
node | LexicalNode |
obfuscateText? | boolean |
Returns
string
Defined in
packages/lexical-devtools-core/src/generateContent.ts:35
LexicalCommandLog
Ƭ LexicalCommandLog: ReadonlyArray
<{ index
: number
} & LexicalCommand
<unknown
> & { payload
: unknown
}>
Defined in
packages/lexical-devtools-core/src/useLexicalCommandsLog.ts:14
Functions
TreeView
▸ TreeView(props
): ReactNode
Parameters
Name | Type |
---|---|
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
, customPrintNode?
, obfuscateText?
): string
Parameters
Name | Type | Default value |
---|---|---|
editor | LexicalEditor | undefined |
commandsLog | LexicalCommandLog | undefined |
exportDOM | boolean | undefined |
customPrintNode? | CustomPrintNodeFn | undefined |
obfuscateText | boolean | false |
Returns
string
Defined in
packages/lexical-devtools-core/src/generateContent.ts:96
registerLexicalCommandLogger
▸ registerLexicalCommandLogger(editor
, setLoggedCommands
): () => void
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
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
Name | Type |
---|---|
editor | LexicalEditor |
Returns
Defined in
packages/lexical-devtools-core/src/useLexicalCommandsLog.ts:57