dev-master
9999999-devThe Codemirror extension for the Yii framework
BSD-3-Clause
The Requires
- yiisoft/yii2 *
- bower-asset/codemirror *
by Andrey Zagorets
yii2 codemirror
The Codemirror extension for the Yii framework
CodeMirror extension for Yii2, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require 'andreosoft/yii2-codemirror-widget', (*4)
or add, (*5)
"andreosoft/yii2-codemirror-widget": "*", (*6)
to the require section of your composer.json
file., (*7)
Once the extension is installed, simply use it in your code by :, (*8)
= $form->field($model, 'content')->widget(Codemirror::className(), [ 'editorOptions' => [ 'lineNumbers' => true, 'matchBrackets' => true, 'indentUnit' => 4, 'indentWithTabs' => true, 'mode' => 'application/x-httpd-php', ], 'editorHeight' => 800]) ?>The Codemirror extension for the Yii framework
BSD-3-Clause
yii2 codemirror