CodeEditor
Available for fields of type text. It is a code editor that can be used to edit code.
<field name="code" widget="codeeditor" nolabel="1" height="300" widget_props="{'lang': 'javascript'}"/>In this case we have the content of the react-code of the CodeEditor widget :)
API
| Property | Description | Type | Default | Version |
|---|---|---|---|---|
widget_props | Object with the following properties | object | - | - |
Widget Props
| Property | Description | Type | Default | Version |
|---|---|---|---|---|
lang | Language of the code | string | - | - |