Skip to content

@sqlrooms/documents / MarkdownDocumentEditorProps

Type Alias: MarkdownDocumentEditorProps

MarkdownDocumentEditorProps = object

Properties

value

value: string


assets?

optional assets: Record<string, DocumentAsset>


onChange()

onChange: (value) => void

Parameters

ParameterType
valuestring

Returns

void


sourcePanelOpen?

optional sourcePanelOpen: boolean


onSourcePanelOpenChange()?

optional onSourcePanelOpenChange: (open) => void

Parameters

ParameterType
openboolean

Returns

void


mode?

optional mode: MarkdownDocumentEditorMode

Deprecated

Use sourcePanelOpen. Source mode now means the Markdown panel is open.


onModeChange()?

optional onModeChange: (mode) => void

Parameters

ParameterType
modeMarkdownDocumentEditorMode

Returns

void

Deprecated

Use onSourcePanelOpenChange.


className?

optional className: string


readOnly?

optional readOnly: boolean