YAML editor

Categories

Component ID

2595191

Component name

YAML editor

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

1656

Component created

Component changed

Component body

This module loads an Ace editor for all textarea with data-yaml-editor attribute.

Demo

Usage

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:

You can create issues and pull requests on Github.