Skip to content

💧 Injects an editor for your YAML configurations textarea elements

Notifications You must be signed in to change notification settings

FeyP/yaml_editor

 
 

Repository files navigation

YAML Editor

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

Demo 📺

Demonstration of editor enabled textarea

Usage ☝️

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 😇

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

Contributing 🔨

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

About

💧 Injects an editor for your YAML configurations textarea elements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 53.7%
  • JavaScript 46.3%