yannickoo/yaml_editor


droplet Injects an editor for your YAML configurations textarea elements

https://www.drupal.org/project/yaml_editor

Language: PHP


YAML Editor

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

Demo :tv:

Demonstration of editor enabled textarea

Usage :point_up:

When you need an editor for your YAML files add a data-yaml-editor to you textarea like:

$form['config'] = [
  '#type' => 'textarea',
  '#title' => t('Configuration'),
  '#attributes' => ['data-yaml-editor' => 'true'],
];

Supporters :innocent:

Here are some module which are already implementing the data-yaml-editor attribute:

Contributing :hammer:

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Project Statistics

Sourcerank 5
Repository Size 5.86 KB
Stars 4
Forks 5
Watchers 1
Open issues 8
Dependencies 0
Contributors 1
Tags 2
Created
Last updated
Last pushed

Top Contributors See all

Yannick

Recent Tags See all

8.x-1.0-beta1 October 13, 2017
8.x-1.0 October 13, 2017

Something wrong with this page? Make a suggestion

Login to resync this repository