@sqlrooms/codemirror / JsonCodeMirrorEditorProps
Interface: JsonCodeMirrorEditorProps
Extends
Omit<CodeMirrorEditorProps,"value"|"extensions">
Properties
className?
optionalclassName?:string
CSS class name for the editor container
Inherited from
CodeMirrorEditorProps.className
readOnly?
optionalreadOnly?:boolean
Whether the editor should be in read-only mode
Inherited from
CodeMirrorEditorProps.readOnly
onChange?
optionalonChange?: (value) =>void
Callback when the editor content changes
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
void
Inherited from
CodeMirrorEditorProps.onChange
onMount?
optionalonMount?: (view) =>void
Callback when the editor view is mounted - provides access to EditorView instance
Parameters
| Parameter | Type |
|---|---|
view | EditorView |
Returns
void
Inherited from
onValidate?
optionalonValidate?: (diagnostics) =>void
Callback when lint diagnostics change (validation errors/warnings)
Parameters
| Parameter | Type |
|---|---|
diagnostics | Diagnostic[] |
Returns
void
Inherited from
CodeMirrorEditorProps.onValidate
options?
optionaloptions?:CodeMirrorEditorOptions
Additional configuration options
Inherited from
schema?
optionalschema?:object
The JSON schema to validate against
value?
optionalvalue?:string|object
The JSON value to edit - can be a string or an object (will be stringified)
hideGutter?
optionalhideGutter?:boolean
Whether to hide the gutter (line numbers, fold markers, etc.)
