dev-master
9999999-dev http://www.yiidoc.com/Extension redactor for Yii2 Framework.
BSD-3-Clause
The Requires
- php >=5.3.0
- yiisoft/yii2 *
by Nghia Nguyen
by Mirocow
extension yii2 wysiwyg imperavi redactor html editor
Extension redactor for Yii2 Framework.
The preferred way to install this extension is through composer., (*2)
"repositories": [ { "type": "git", "url": "https://github.com/mirocow/yii2-redactor.git" } ]
and then, (*3)
php composer.phar require --prefer-dist "mirocow/yii2-redactor" "*"
or add, (*4)
"mirocow/yii2-redactor" : "*"
to the require section of your application's composer.json
file., (*5)
'components' => [ 'redactor' => [ 'class' => 'yii\redactor\RedactorModule' ], ]
use yii\redactor\widgets\Redactor; <?= Redactor::widget( [ 'model' => $model, 'attribute' => 'description', 'options' => [ 'style' => 'width: 100%; height: 340px;', ], 'clientOptions' => [ 'imageManagerJson' => \yii\helpers\Html::url('/redactor/upload/imagejson'), 'imageUpload' => \yii\helpers\Html::url('/redactor/upload/image'), 'fileUpload' => \yii\helpers\Html::url('/redactor/upload/file'), 'lang' => 'en', 'plugins' => ['fontcolor', 'filemanager', 'imagemanager', 'table', 'undoredo'], 'placeholder' => 'Please add description', ], ] ); ?>
Extension redactor for Yii2 Framework.
BSD-3-Clause
extension yii2 wysiwyg imperavi redactor html editor