PHPackages                             b-khouy/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. b-khouy/yaml\_editor

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

b-khouy/yaml\_editor
====================

Adds an editor for YAML configuration textareas

2.0.0(2y ago)11.6k2PHP

Since Jul 17Pushed 2y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

1027d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a9ddec3cb33b56dee01bdb5946ca410ff02db6a69c8307f5495e577b47e8d61?d=identicon)[b.khouy](/maintainers/b.khouy)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[wearepixel/laravel-cart

A cart implementation for Laravel

1310.5k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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