@sqlrooms/mosaic / MosaicCodeMirrorEditorProps
Interface: MosaicCodeMirrorEditorProps
Extends
Omit<JsonCodeMirrorEditorProps,"schema">
Properties
className?
optionalclassName?:string
CSS class name for the editor container
Inherited from
Omit.className
readOnly?
optionalreadOnly?:boolean
Whether the editor should be in read-only mode
Inherited from
Omit.readOnly
onChange?
optionalonChange?: (value) =>void
Callback when the editor content changes
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
void
Inherited from
Omit.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
Omit.onMount
onValidate?
optionalonValidate?: (diagnostics) =>void
Callback when lint diagnostics change (validation errors/warnings)
Parameters
| Parameter | Type |
|---|---|
diagnostics | Diagnostic[] |
Returns
void
Inherited from
Omit.onValidate
options?
optionaloptions?:CodeMirrorEditorOptions
Additional configuration options
Inherited from
Omit.options
value?
optionalvalue?:string|object
The JSON value to edit - can be a string or an object (will be stringified)
Inherited from
Omit.value
hideGutter?
optionalhideGutter?:boolean
Whether to hide the gutter (line numbers, fold markers, etc.)
Inherited from
Omit.hideGutter
enableSchemaValidation?
optionalenableSchemaValidation?:boolean
Whether to enable Mosaic JSON schema validation
Default
false