YAML Editor
Security covered
This module loads an Ace editor for all textarea with data-yaml-editor attribute.
Demo
Use with Form API
When you need an editor for your YAML files add a data-yaml-editor to you textarea like this:
$form['config'] = [
'#type' => 'textarea',
'#title' => t('Configuration'),
'#attributes' => ['data-yaml-editor' => 'true'],
];
Supporters
Here are some module which are already implementing the data-yaml-editor attribute this means you just enable this module and will get the editor for:
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 8.x-1.3 | Stable | Drupal 11 compatibility | Dec 20, 2024 |