panix / wgt-codemirror
Widget codemirror
Package info
github.com/andrtechno/wgt-codemirror
Type:pixelion-component
pkg:composer/panix/wgt-codemirror
dev-master
2021-02-01 10:57 UTC
Requires
- bower-asset/codemirror: ^5.57
This package is auto-updated.
Last update: 2026-03-01 00:32:44 UTC
README
Widget for Yii Framework 2.0 to use CodeMirror
Installation
The preferred way to install this extension is through composer.
Either run
php composer require --prefer-dist panix/wgt-codemirror "*"
or add
"panix/wgt-codemirror": "*"
to the require section of your composer.json file.
Configuration
| Опция | Тип | Описание |
|---|---|---|
theme |
string | Тема |
base |
string | text/html |
Examaple
<?php echo $form->field($model, 'code')->widget(CodeMirrorTextArea::class, [ // options ]); ?>