A small controlled CodeMirror 6 editor for plain text / code — used by Manage for JS sidecars and
raw list editing (where the DPL-specific DplEditor would be wrong). It behaves like a textarea
(value + onChange), takes an optional language extension, and is built for large documents
(CodeMirror only renders the viewport, so multi-thousand-line lists stay smooth).
- Description:
A small controlled CodeMirror 6 editor for plain text / code — used by Manage for JS sidecars and raw list editing (where the DPL-specific
DplEditorwould be wrong). It behaves like a textarea (value+onChange), takes an optional language extension, and is built for large documents (CodeMirror only renders the viewport, so multi-thousand-line lists stay smooth).
- Source:
Methods
(inner) CodeEditor(props) → {JSX.Element}
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
object |
Properties
|
||||||||||||||||||||||||||||||||||||
|
Returns:
- Type
- JSX.Element