voidagency/yaml_editor
最新稳定版本:2.0.0
Composer 安装命令:
composer require voidagency/yaml_editor
包简介
Adds an editor for YAML configuration textareas
README 文档
README
This module loads an Ace editor for all textarea with
data-yaml-editorattribute
Demo 📺
Usage ☝️
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
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.
统计信息
- 总下载量: 8.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-01-15