cabbage / yii2-kindeditor
There is no license information available for the latest version (dev-master) of this package.
kindeditor in yii2
dev-master
2015-05-21 09:33 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: ~2.0@dev
This package is not auto-updated.
Last update: 2024-09-28 16:31:05 UTC
README
Install
composer require "cabbage/yii2-kindeditor"
In config
'modules'=>[
'upload' => [
'class' => 'cabbage\kindeditor\Module',
],
]
In view
<?php $form = ActiveForm::begin(['type'=>ActiveForm::TYPE_HORIZONTAL]); echo Form::widget([
'model' => $model,
'form' => $form,
'columns' => 1,
'attributes' => [
'content'=>['type'=> Form::INPUT_WIDGET,'widgetClass'=>\cabbage\kindeditor\KindEditor::className(), 'options'=>[]],
]
]);
echo Html::submitButton($model->isNewRecord ? Yii::t('app','Create') : Yii::t('app','Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
ActiveForm::end(); ?>