2017 © Pedro Peláez
 

library yii2-kindeditor

kindeditor in yii2

image

cabbage/yii2-kindeditor

kindeditor in yii2

  • Thursday, May 21, 2015
  • by twocabbages
  • Repository
  • 2 Watchers
  • 1 Stars
  • 70 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 25 % Grown

The README.md

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(); ?>

The Versions

21/05 2015

dev-master

9999999-dev

kindeditor in yii2

  Sources   Download

The Requires

 

by cabbage