Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

YAML Editor

Security covered Under active development 9,753 sites

This module adds a code editor for YAML fields within Drupal forms. It enhances user experience by providing syntax highlighting and editing capabilities for YAML content directly in textarea elements.

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:

Drupal 8–11

Ask your assistant about YAML Editor

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

4 tracked projects depend on this one

Activity

Tracked releases
2
Tracked since
Aug 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Active

Releases

Version Type Core PHP Release date
8.x-1.3 Stable 8–11 Dec 20, 2024
8.x-1.2 Stable 8–10 Aug 14, 2023