PHPackages                             voidagency/yaml\_editor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. voidagency/yaml\_editor

ActiveDrupal-module

voidagency/yaml\_editor
=======================

Adds an editor for YAML configuration textareas

2.0.0(2y ago)09.1k↓37.2%1[1 PRs](https://github.com/voidagency/yaml_editor/pulls)2PHP

Since Jan 15Pushed 2y agoCompare

[ Source](https://github.com/voidagency/yaml_editor)[ Packagist](https://packagist.org/packages/voidagency/yaml_editor)[ Docs](https://www.drupal.org/project/yaml_editor)[ RSS](/packages/voidagency-yaml-editor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (2)

YAML Editor
===========

[](#yaml-editor)

> This module loads an [Ace](https://ace.c9.io) editor for all textarea with `data-yaml-editor` attribute

Demo 📺
------

[](#demo-tv)

[![Demonstration of editor enabled textarea](https://camo.githubusercontent.com/be13868069eb2e369934c2d11215b741b68136a0a48eac296755e67c26b49cc6/68747470733a2f2f7777772e64727570616c2e6f72672f66696c65732f79616d6c2d656469746f722d64656d6f5f302e676966)](https://camo.githubusercontent.com/be13868069eb2e369934c2d11215b741b68136a0a48eac296755e67c26b49cc6/68747470733a2f2f7777772e64727570616c2e6f72672f66696c65732f79616d6c2d656469746f722d64656d6f5f302e676966)

Usage ☝️
--------

[](#usage-point_up)

### Field widget

[](#field-widget)

You can use the YAML editor for *Text (plain, long)* fields, simply go to *Manage form display* and select *Textarea with YAML editor*.

### Code

[](#code)

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 😇
------------

[](#supporters-innocent)

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

- [Linked Field](https://www.drupal.org/project/linked_field)
- [Menu Link Attributes](https://www.drupal.org/project/menu_link_attributes)
- [Block Attributes](https://github.com/axe312ger/block_attributes)
- [Responsive SVG](https://www.drupal.org/project/responsive_svg)

Contributing 🔨
--------------

[](#contributing-hammer)

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/yannickoo/yaml_editor/issues/new).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

854d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6722b5b8422303c4972f64506ea87cf1d451da041fc7546ff812c0a64184cb9?d=identicon)[voidagency](/maintainers/voidagency)

---

Top Contributors

[![b-khouy](https://avatars.githubusercontent.com/u/67552891?v=4)](https://github.com/b-khouy "b-khouy (1 commits)")[![voidagency](https://avatars.githubusercontent.com/u/63363095?v=4)](https://github.com/voidagency "voidagency (1 commits)")

### Embed Badge

![Health badge](/badges/voidagency-yaml-editor/health.svg)

```
[![Health](https://phpackages.com/badges/voidagency-yaml-editor/health.svg)](https://phpackages.com/packages/voidagency-yaml-editor)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
