Large file not firing all shortcodes with Regular Parser

Created Diff never expires
94 removals
438 lines
63 additions
407 lines
## Regular Parser
## Regex Parser


Admin-side forms can be created with a variety of fields. This document provides a complete reference of the properties of each field, and provides usage examples.
Admin-side forms can be created with a variety of fields. This document provides a complete reference of the properties of each field, and provides usage examples.


In addition to the fields listed below, reserved for usage in the Admin, you can also use all the fields available in the frontend forms described in [the Frontend Forms Fields Reference](/forms/forms/fields-available).
In addition to the fields listed below, reserved for usage in the Admin, you can also use all the fields available in the frontend forms described in [the Frontend Forms Fields Reference](/forms/forms/fields-available).


### Special Form Fields Available Exclusively in the Admin
### Special Form Fields Available Exclusively in the Admin


[div class="table table-keycol"]
<div class="table table-keycol">
| Field | Description |
| Field | Description |
| :----- | :----- |
| :----- | :----- |
| **[Array](#the-array-field)** | used to create key-value arrays |
| **[Array](#the-array-field)** | used to create key-value arrays |
| **BackupHistory** | |
| **BackupHistory** | |
| **Blueprint** | |
| **Blueprint** | |
| **[Colorpicker](#the-colorpicker-field)** | show a color picker |
| **[Colorpicker](#the-colorpicker-field)** | show a color picker |
| **[Columns](#the-columns-column-fields)** | used to break the form into multiple columns |
| **[Columns](#the-columns-column-fields)** | used to break the form into multiple columns |
| **[Column](#the-columns-column-fields)** | used to show a single column (used with the `Columns` field) |
| **[Column](#the-columns-column-fields)** | used to show a single column (used with the `Columns` field) |
| **Cron** | |
| **Cron** | |
| **CronStatus** | |
| **CronStatus** | |
| **[Dateformat](#the-dateformat-field)** | a special select that renders the current date/time in the passed formats |
| **[Dateformat](#the-dateformat-field)** | a special select that renders the current date/time in the passed formats |
| **[Datetime](#the-datetime-field)** | a date and time selection field |
| **[Datetime](#the-datetime-field)** | a date and time selection field |
| **[Editor](#the-editor-field)** | show a markdown editor |
| **[Editor](#the-editor-field)** | show a markdown editor |
| **[Fieldset](#the-fieldset-field)** | group a set of fields inside a collapsible accordion |
| **[Fieldset](#the-fieldset-field)** | group a set of fields inside a collapsible accordion |
| **[File](#the-file-field)** | in Admin, **File** is specialized to be used in plugin and theme configurations (blueprints). Handles uploading a file to a location and deleting it, and removing it from the theme / plugin configuration |
| **[File](#the-file-field)** | in Admin, **File** is specialized to be used in plugin and theme configurations (blueprints). Handles uploading a file to a location and deleting it, and removing it from the theme / plugin configuration |
| **[Filepicker](#the-filepicker-field)** | **Filepicker** allows to choose files from a location in the web server filesystem. |
| **[Filepicker](#the-filepicker-field)** | **Filepicker** allows to choose files from a location in the web server filesystem. |
| **Frontmatter** | |
| **Frontmatter** | |
| **IconPicker** | |
| **IconPicker** | |
| **[List](#the-list-field)** | used to create collections of fields |
| **[List](#the-list-field)** | used to create collections of fields |
| **Markdown** | |
| **Markdown** | |
| **MediaPicker** | |
| **MediaPicker** | |
| **Multilevel** | |
| **Multilevel** | |
| **Order** | |
| **Order** | |
| **PageMedia** | |
| **PageMedia** | |
| **[PageMediaSelect](#the-pagemediaselect-field)** | shows a select with all the page media. Used in Pages blueprints to let the user choose a media file to be assigned to a field. |
| **[PageMediaSelect](#the-pagemediaselect-field)** | shows a select with all the page media. Used in Pages blueprints to let the user choose a media file to be assigned to a field. |
| **[Pages](#the-pages-field)** | shows a list of the site pages |
| **[Pages](#the-pages-field)** | shows a list of the site pages |
| **Parents** | |
| **Parents** | |
| **Permissions** | |
| **Permissions** | |
| **Range** | |
| **Range** | |
| **[Section](#the-section-field)** | used to divide a setting page into sections; each section comes with a title |
| **[Section](#the-section-field)** | used to divide a setting page into sections; each section comes with a title |
| **[Selectize](#the-selectize-field)** | a hybrid of a text box and a select box. Mostly useful for tagging and other element picking fields. |
| **[Selectize](#the-selectize-field)** | a hybrid of a text box and a select box. Mostly useful for tagging and other element picking fields. |
| **SelectUnique** | |
| **SelectUnique** | |
| **[Taxonomy](#the-taxonomy-field)** | a special select preconfigured to select one or more taxonomies |
| **[Taxonomy](#the-taxonomy-field)** | a special select preconfigured to select one or more taxonomies |
| **ThemeSelect** | |
| **ThemeSelect** | |
| **UserInfo** | |
| **UserInfo** | |
| **Xss** | |
| **Xss** | |
[/div]
</div>


### Common Fields Attributes
### Common Fields Attributes


Every field accepts a list of attributes you can use. Each field could share these common attributes, but particular fields might ignore them. The best way to check which attributes are allowed on a field is to check the field description in this page, and see which attributes are mentioned.
Every field accepts a list of attributes you can use. Each field could share these common attributes, but particular fields might ignore them. The best way to check which attributes are allowed on a field is to check the field description in this page, and see which attributes are mentioned.


This list provides a common ground so there's no need to repeat the description of a common field.
This list provides a common ground so there's no need to repeat the description of a common field.


[div class="table table-keycol"]
<div class="table table-keycol">
| Attribute | Description |
| Attribute | Description |
| :----- | :----- |
| :----- | :----- |
| `autocomplete` | accepts `on` or `off` |
| `autocomplete` | accepts `on` or `off` |
| `autofocus` | if enabled, autofocus on that field |
| `autofocus` | if enabled, autofocus on that field |
| `classes` | accepts a string with one or more CSS classes to add |
| `classes` | accepts a string with one or more CSS classes to add |
| `default` | sets the field default value. This ensures you will always get back either a user-specified value _or_ this default value. See also `placeholder`. |
| `default` | sets the field default value. This ensures you will always get back either a user-specified value _or_ this default value. See also `placeholder`. |
| `disabled` | sets the field disabled state |
| `disabled` | sets the field disabled state |
| `help` | Adds a tooltip to the field |
| `help` | Adds a tooltip to the field |
| `id` | sets the field id as well as the `for` attribute on the label |
| `id` | sets the field id as well as the `for` attribute on the label |
| `label` | sets the field label |
| `label` | sets the field label |
| `name` | sets the field name |
| `name` | sets the field name |
| `novalidate` | sets the field novalidate state |
| `novalidate` | sets the field novalidate state |
| `placeholder` | sets the field placeholder value. This is to set a value the user can see as a prompt for their own value, but it does not influence what value ultimately gets written. See also `default`. |
| `placeholder` | sets the field placeholder value. This is to set a value the user can see as a prompt for their own value, but it does not influence what value ultimately gets written. See also `default`. |
| `readonly` | sets the field read-only state |
| `readonly` | sets the field read-only state |
| `size` | sets the field size, which in turn adds a class to its container. Valid values are `large`, `x-small`, `medium`, `long`, `small`. You can of course add more in the template you see, when used in the frontend |
| `size` | sets the field size, which in turn adds a class to its container. Valid values are `large`, `x-small`, `medium`, `long`, `small`. You can of course add more in the template you see, when used in the frontend |
| `style` | sets the field style. If set to `vertical`, the field is able to appear full width. This is an easy way to clean up the form. |
| `style` | sets the field style. If set to `vertical`, the field is able to appear full width. This is an easy way to clean up the form. |
| `title` | sets the field title value |
| `title` | sets the field title value |
| `toggleable` | add a checkbox that will toggle the enabled/disabled attribute of the field |
| `toggleable` | add a checkbox that will toggle the enabled/disabled attribute of the field |
| `validate.required` | if set to a positive value, sets the field as required |
| `validate.required` | if set to a positive value, sets the field as required |
| `validate.pattern` | sets a validation pattern |
| `validate.pattern` | sets a validation pattern |
| `validate.message` | sets the message shown if the validation fails |
| `validate.message` | sets the message shown if the validation fails |
| `validate.type` | sets the field type used during validation |
| `validate.type` | sets the field type used during validation |
[/div]
</div>


### Know more about fields
### Know more about fields


You can read how the fields are built from the source: [Fields added by the Form Plugin](https://github.com/getgrav/grav-plugin-form/tree/master/templates/forms) and [Fields only available in Admin](https://github.com/getgrav/grav-plugin-admin/tree/master/themes/grav/templates/forms).
You can read how the fields are built from the source: [Fields added by the Form Plugin](https://github.com/getgrav/grav-plugin-form/tree/master/templates/forms) and [Fields only available in Admin](https://github.com/getgrav/grav-plugin-admin/tree/master/themes/grav/templates/forms).


### Validation
### Validation


Most of the fields allow validation.
Most of the fields allow validation.


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
validate:
validate:
required: true
required: true
[/prism]
</code></pre></div>


will cause the field to be marked as required.
will cause the field to be marked as required.


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
validate:
validate:
message: 'Some message'
message: 'Some message'
[/prism]
</code></pre></div>


will show the defined message when the field is not correctly filled.
will show the defined message when the field is not correctly filled.


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
validate:
validate:
pattern: 'Some pattern'
pattern: 'Some pattern'
[/prism]
</code></pre></div>


will validate the field value against the passed regex pattern. Examples: `pattern: "[1-9][0-9]*"`, `pattern: '[A-Za-z0-9-]+'`, `pattern: '[a-z0-9-]+'`, ` pattern: '^[a-z0-9_-]{3,16}$'`, `pattern: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'`
will validate the field value against the passed regex pattern. Examples: `pattern: "[1-9][0-9]*"`, `pattern: '[A-Za-z0-9-]+'`, `pattern: '[a-z0-9-]+'`, ` pattern: '^[a-z0-9_-]{3,16}$'`, `pattern: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}'`


#### validate.type
#### validate.type


`validate.type` indicates which type should it validate against.
`validate.type` indicates which type should it validate against.


Some examples:
Some examples:


An editor will result in a `textarea`:
An editor will result in a `textarea`:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
content:
content:
type: editor
type: editor
validate:
validate:
type: textarea
type: textarea
[/prism]
</code></pre></div>


A selectize will be a `commalist`:
A selectize will be a `commalist`:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
taxonomies:
taxonomies:
type: selectize
type: selectize
size: large
size: large
label: PLUGIN_ADMIN.TAXONOMY_TYPES
label: PLUGIN_ADMIN.TAXONOMY_TYPES
classes: fancy
classes: fancy
help: PLUGIN_ADMIN.TAXONOMY_TYPES_HELP
help: PLUGIN_ADMIN.TAXONOMY_TYPES_HELP
validate:
validate:
type: commalist
type: commalist


filters.category:
filters.category:
type: selectize
type: selectize
label: Category filter
label: Category filter
help: Comma separated list of category names
help: Comma separated list of category names
validate:
validate:
type: commalist
type: commalist
[/prism]
</code></pre></div>


Validate an email address:
Validate an email address:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
author.email:
author.email:
type: text
type: text
size: large
size: large
label: PLUGIN_ADMIN.DEFAULT_EMAIL
label: PLUGIN_ADMIN.DEFAULT_EMAIL
help: PLUGIN_ADMIN.DEFAULT_EMAIL_HELP
help: PLUGIN_ADMIN.DEFAULT_EMAIL_HELP
validate:
validate:
type: email
type: email
[/prism]
</code></pre></div>


Make sure a value is a bool:
Make sure a value is a bool:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
summary.enabled:
summary.enabled:
type: toggle
type: toggle
label: PLUGIN_ADMIN.ENABLED
label: PLUGIN_ADMIN.ENABLED
highlight: 1
highlight: 1
help: PLUGIN_ADMIN.ENABLED_HELP
help: PLUGIN_ADMIN.ENABLED_HELP
options:
options:
1: PLUGIN_ADMIN.YES
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
0: PLUGIN_ADMIN.NO
validate:
validate:
type: bool
type: bool
[/prism]
</code></pre></div>


Make sure a value is an integer between 0 and 65536:
Make sure a value is an integer between 0 and 65536:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
summary.size:
summary.size:
type: text
type: text
size: x-small
size: x-small
label: PLUGIN_ADMIN.SUMMARY_SIZE
label: PLUGIN_ADMIN.SUMMARY_SIZE
help: PLUGIN_ADMIN.SUMMARY_SIZE_HELP
help: PLUGIN_ADMIN.SUMMARY_SIZE_HELP
validate:
validate:
type: int
type: int
min: 0
min: 0
max: 65536
max: 65536
[/prism]
</code></pre></div>


Make sure a value is a number > 1:
Make sure a value is a number > 1:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
pages.list.count:
pages.list.count:
type: text
type: text
size: x-small
size: x-small
label: PLUGIN_ADMIN.DEFAULT_PAGE_COUNT
label: PLUGIN_ADMIN.DEFAULT_PAGE_COUNT
help: PLUGIN_ADMIN.DEFAULT_PAGE_COUNT_HELP
help: PLUGIN_ADMIN.DEFAULT_PAGE_COUNT_HELP
validate:
validate:
type: number
type: number
min: 1
min: 1
[/prism]
</code></pre></div>


Validate a taxonomy type as an array:
Validate a taxonomy type as an array:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
header.taxonomy:
header.taxonomy:
type: taxonomy
type: taxonomy
label: PLUGIN_ADMIN.TAXONOMY
label: PLUGIN_ADMIN.TAXONOMY
multiple: true
multiple: true
validate:
validate:
type: array
type: array
[/prism]
</code></pre></div>


Validate a text field as a slug:
Validate a text field as a slug:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
folder:
folder:
type: text
type: text
label: PLUGIN_ADMIN.FOLDER_NAME
label: PLUGIN_ADMIN.FOLDER_NAME
validate:
validate:
type: slug
type: slug
[/prism]
</code></pre></div>


### Array Field
### Array Field


![Array](array_field_bp.gif)
![Array](array_field_bp.gif)


The `array` field type is used to create a simple list of key - values objects.
The `array` field type is used to create a simple list of key - values objects.


Example:
Example:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
metadata:
metadata:
type: array
type: array
label: PLUGIN_ADMIN.METADATA
label: PLUGIN_ADMIN.METADATA
help: PLUGIN_ADMIN.METADATA_HELP
help: PLUGIN_ADMIN.METADATA_HELP
placeholder_key: PLUGIN_ADMIN.METADATA_KEY
placeholder_key: PLUGIN_ADMIN.METADATA_KEY
placeholder_value: PLUGIN_ADMIN.METADATA_VALUE
placeholder_value: PLUGIN_ADMIN.METADATA_VALUE
required: true
required: true
[/prism]
</code></pre></div>


[div class="table table-keycol"]
<div class="table table-keycol">
| Attribute | Description |
| Attribute | Description |
| :----- | :----- |
| :----- | :----- |
| `placeholder_key` | |
| `placeholder_key` | |
| `placeholder_value` | |
| `placeholder_value` | |
| `value_only` | |
| `value_only` | |
[/div]
</div>


[div class="table table-keycol"]
<div class="table table-keycol">
| Common Attributes Allowed |
| Common Attributes Allowed |
| :----- |
| :----- |
| [default](#common-fields-attributes) |
| [default](#common-fields-attributes) |
| [help](#common-fields-attributes) |
| [help](#common-fields-attributes) |
| [label](#common-fields-attributes) |
| [label](#common-fields-attributes) |
| [name](#common-fields-attributes) |
| [name](#common-fields-attributes) |
| [style](#common-fields-attributes) |
| [style](#common-fields-attributes) |
| [toggleable](#common-fields-attributes) |
| [toggleable](#common-fields-attributes) |
| [validate.required](#common-fields-attributes) |
| [validate.required](#common-fields-attributes) |
| [validate.type](#common-fields-attributes) |
| [validate.type](#common-fields-attributes) |
[/div]
</div>


### Colorpicker Field
### Colorpicker Field


![Colorpicker](colorpicker_field.png)
![Colorpicker](colorpicker_field.png)


The `colorpicker` field type is used to display a color picker field
The `colorpicker` field type is used to display a color picker field


Example:
Example:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
color:
color:
type: colorpicker
type: colorpicker
label: Choose a color
label: Choose a color
[/prism]
</code></pre></div>


[div class="table table-keycol"]
<div class="table table-keycol">
| Common Attributes Allowed |
| Common Attributes Allowed |
| :----- |
| :----- |
| [autocomplete](#common-fields-attributes) |
| [autocomplete](#common-fields-attributes) |
| [autofocus](#common-fields-attributes) |
| [autofocus](#common-fields-attributes) |
| [classes](#common-fields-attributes) |
| [classes](#common-fields-attributes) |
| [default](#common-fields-attributes) |
| [default](#common-fields-attributes) |
| [disabled](#common-fields-attributes) |
| [disabled](#common-fields-attributes) |
| [help](#common-fields-attributes) |
| [help](#common-fields-attributes) |
| [id](#common-fields-attributes) |
| [id](#common-fields-attributes) |
| [label](#common-fields-attributes) |
| [label](#common-fields-attributes) |
| [name](#common-fields-attributes) |
| [name](#common-fields-attributes) |
| [placeholder](#common-fields-attributes) |
| [placeholder](#common-fields-attributes) |
| [style](#common-fields-attributes) |
| [style](#common-fields-attributes) |
| [title](#common-fields-attributes) |
| [title](#common-fields-attributes) |
| [toggleable](#common-fields-attributes) |
| [toggleable](#common-fields-attributes) |
| [validate.message](#common-fields-attributes) |
| [validate.message](#common-fields-attributes) |
| [validate.required](#common-fields-attributes) |
| [validate.required](#common-fields-attributes) |
| [validate.type](#common-fields-attributes) |
| [validate.type](#common-fields-attributes) |
[/div]
</div>


### Columns / column Fields
### Columns / column Fields


![Columns](columns_field_bp.gif)
![Columns](columns_field_bp.gif)


The `columns` and `column` field types are used to divide the contained form fields in columns
The `columns` and `column` field types are used to divide the contained form fields in columns


Example:
Example:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
columns:
columns:
type: columns
type: columns
fields:
fields:
column1:
column1:
type: column
type: column
fields:
fields:


# .... subfields
# .... subfields


column2:
column2:
type: column
type: column
fields:
fields:


# .... other subfields
# .... other subfields
[/prism]
</code></pre></div>


[div class="table table-keycol"]
<div class="table table-keycol">
| Attribute | Description |
| Attribute | Description |
| :----- | :----- |
| :----- | :----- |
| `fields` | The columns / column subfields |
| `fields` | The columns / column subfields |
[/div]
</div>


### Dateformat Field
### Dateformat Field


![DateFormat](dateformat_field_bp.gif)
![DateFormat](dateformat_field_bp.gif)


The `dateformat` field type is used to
The `dateformat` field type is used to


Example:
Example:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
pages.dateformat.short:
pages.dateformat.short:
type: dateformat
type: dateformat
size: medium
size: medium
classes: fancy
classes: fancy
label: PLUGIN_ADMIN.SHORT_DATE_FORMAT
label: PLUGIN_ADMIN.SHORT_DATE_FORMAT
help: PLUGIN_ADMIN.SHORT_DATE_FORMAT_HELP
help: PLUGIN_ADMIN.SHORT_DATE_FORMAT_HELP
default: "jS M Y"
default: "jS M Y"
options:
options:
"F jS \\a\\t g:ia": Date1
"F jS \\a\\t g:ia": Date1
"l jS \\of F g:i A": Date2
"l jS \\of F g:i A": Date2
"D, d M Y G:i:s": Date3
"D, d M Y G:i:s": Date3
"d-m-y G:i": Date4
"d-m-y G:i": Date4
"jS M Y": Date5
"jS M Y": Date5
[/prism]
</code></pre></div>




[div class="table table-keycol"]
<div class="table table-keycol">
| Attribute | Description |
| Attribute | Description |
| :----- | :----- |
| :----- | :----- |
| `options` | The field available key-value options |
| `options` | The field available key-value options |
| `multiple` | boolean. If positive, the field accepts multiple values |
| `multiple` | boolean. If positive, the field accepts multiple values |
| `selectize` | |
| `selectize` | |
[/div]
</div>


[div class="table table-keycol"]
<div class="table table-keycol">
| Common Attributes Allowed |
| Common Attributes Allowed |
| :----- |
| :----- |
| [autofocus](#common-fields-attributes) |
| [autofocus](#common-fields-attributes) |
| [classes](#common-fields-attributes) |
| [classes](#common-fields-attributes) |
| [default](#common-fields-attributes) |
| [default](#common-fields-attributes) |
| [disabled](#common-fields-attributes) |
| [disabled](#common-fields-attributes) |
| [help](#common-fields-attributes) |
| [help](#common-fields-attributes) |
| [label](#common-fields-attributes) |
| [label](#common-fields-attributes) |
| [name](#common-fields-attributes) |
| [name](#common-fields-attributes) |
| [novalidate](#common-fields-attributes) |
| [novalidate](#common-fields-attributes) |
| [size](#common-fields-attributes) |
| [size](#common-fields-attributes) |
| [style](#common-fields-attributes) |
| [style](#common-fields-attributes) |
| [toggleable](#common-fields-attributes) |
| [toggleable](#common-fields-attributes) |
| [validate.required](#common-fields-attributes) |
| [validate.required](#common-fields-attributes) |
| [validate.type](#common-fields-attributes) |
| [validate.type](#common-fields-attributes) |
[/div]
</div>


### Datetime Field
### Datetime Field


![DateTime](datetime_field.gif)
![DateTime](datetime_field.gif)


The `datetime` field type is used to store and present a date and time field.
The `datetime` field type is used to store and present a date and time field.


Example:
Example:


[prism classes="language-yaml line-numbers"]
<div class="prism-wrapper"><pre class="language-yaml line-numbers"><code>
header.date:
header.date:
type: datetime
type: datetime
label: PLUGIN_ADMIN.DATE
label: PLUGIN_ADMIN.DATE
toggleable: true
toggleable: true
help: PLUGIN_ADMIN.DATE_HELP
help: PLUGIN_ADMIN.DATE_HELP
[/prism]
</code></pre></div>




[div class="table table-keycol"]
<div class="table table-keycol">
| Attribute | Description |
| Attribute | Description |
| :----- | :----- |
| :----- | :----- |
| `validate.min` | A minimum valid value |
| `validate.min` | A minimum valid value |
| `validate.max` | A maximum valid value |
| `validate.max` | A maximum valid value |
[/div]
</div>


[div class="table table-keycol"]
<div class="table table-keycol">
| Common Attributes Allowed |
| Common Attributes Allowed |
| :----- |
| :----- |
| [default](#common-fields-attributes) |
| [default](#common-fields-attributes) |
| [help](#common-fields-attributes) |
| [help](#common-fields-attributes) |
| [label](#common-fields-attributes) |
| [label](#common-fields-attributes) |
| [name](#common-fields-attributes) |
| [name](#common-fields-attributes) |
| [size](#common-fields-attributes) |
| [size](#common-fields-attributes) |
| [style](#common-fields-attributes) |
| [style](#common-fields-attributes) |
| [toggleable](#common-fields-attributes) |
| [toggleable](#common-f
| [validate.required](#common-fields-attributes) |
| [validate.type](#common-fields-attributes) |
[/div]

### Editor Field

![Editor Field](editor_field_bp.gif)

The `editor` field type is used to present the Codemirror editor

Example:

[prism classes="language-yaml line-numbers"]
frontmatter:
classes: frontmatter
type: editor
label: PLUGIN_ADMIN.FRONTMATTER
autofocus: true
codemirror:
mode: 'yaml'
indentUnit: 4
autofocus: true
indentWithTabs: false
lineNumbers: true
styleActiveLine: true
gutters: ['CodeMirror-lint-markers']
lint: true
[/prism]


[div class=