latest version

Code Mirror

Code mirror option type.

Fields

Name Type Required Description
placeholder string   Specify textarea placeholder.

Config

Name Type Default Description
language string css
Specify specific language syntax highlight.
Allowed languages list:
- css
- javascript
- html
- xml
- markdown

DefaultValue

Name Type Default Description
value string "" Any string value.

Minimal Usage

{
  id: "custom-css",
  type: "codeMirror"
}

Usage

{
  label: "Custom CSS",
  id: "custom-css",
  type: "codeMirror"
  placeholder: "element { color: red }",
  config: {
    language: "css",
  },
  defaultValue: {
    value: "",
  }
}