panix / wgt-codemirror
Widget codemirror
dev-master
2021-02-01 10:57 UTC
Requires
- bower-asset/codemirror: ^5.57
This package is auto-updated.
Last update: 2024-09-29 05:49:36 UTC
README
用于Yii Framework 2.0的Widget,以使用CodeMirror
安装
安装此扩展的首选方式是通过composer。
运行以下命令之一
php composer require --prefer-dist panix/wgt-codemirror "*"
或者将以下内容添加到你的composer.json
文件的require部分:
"panix/wgt-codemirror": "*"
to the require section of your composer.json
file.
配置
示例
<?php echo $form->field($model, 'code')->widget(CodeMirrorTextArea::class, [ // options ]); ?>