kak / aceeditor
ace editor widget for yii2
Installs: 138
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-widget
Requires
- php: >=5.4.0
- bower-asset/ace-builds: ^1.2.3
- yiisoft/yii2-imagine: *
This package is auto-updated.
Last update: 2024-10-22 04:56:18 UTC
README
AceEditor widgets for Yii2
Preview
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist kak/aceeditor "dev-master"
or add
"kak/aceeditor": "dev-master"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?php echo yii\helpers\Html::activeLabel($model,'html_wrap'); echo \kak\widgets\aceeditor\AceEditor::widget([ // You can either use it for model attribute 'model' => $model, 'attribute' => 'html_wrap', 'mode'=>'html', // programing language mode. Default "html" 'theme'=>'github' // editor theme. Default "github" ]); ?>