Need help in the process of creating your own WordPress theme?
Code mirror option type.
| Name | Type | Required | Description |
|---|---|---|---|
| placeholder | string |
Specify textarea placeholder. |
| Name | Type | Default | Description |
|---|---|---|---|
| language | string |
css |
Allowed languages list:
-
css-
javascript-
html-
xml-
markdown |
| Name | Type | Default | Description |
|---|---|---|---|
| value | string |
"" |
Any string value. |
{
id: "custom-css",
type: "codeMirror"
}
{
label: "Custom CSS",
id: "custom-css",
type: "codeMirror"
placeholder: "element { color: red }",
config: {
language: "css",
},
defaultValue: {
value: "",
}
}