Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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:
Project information
- Module categories: Developer Tools
- 4,439 sites report using this module
- Created by yannickoo on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.2
released 14 August 2023
Works with Drupal: ^8 || ^9 || ^10
✓ Recommended by the project’s maintainer.
Install:
Development version: 8.x-1.x-dev updated 12 Aug 2023 at 13:56 UTC