black-lamp / yii2-text-editor
Widget for Ace code editor
Installs: 1 541
Dependents: 3
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/ace-builds: 1.2.*
- bower-asset/emmet-core-js: dev-master
- yiisoft/yii2: ^2.0.4
This package is not auto-updated.
Last update: 2024-11-09 20:50:48 UTC
README
Widget for Ace code editor
Installation
Run command
composer require black-lamp/yii2-text-editor
or add
"black-lamp/yii2-text-editor": "2.0.0"
to the require section of your composer.json.
Using
Use widget with ActiveForm
$form = ActiveForm::begin(); // ... echo $form->field($model, 'text') ->widget(bl\ace\AceWidget::className(), [ 'language' => 'javascript' ]); $form->end();
Widget configuration properties
For more information about 'language' and 'theme' configuration attributes read Ace documentation