2017 © Pedro Peláez
 

yii2-extension kindeditor

yii2-kindeditor编辑器

image

anrhkk/kindeditor

yii2-kindeditor编辑器

  • Thursday, November 5, 2015
  • by anrhkk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

KindEditor Widget for Yii2

KindEditor Widget for Yii2, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist anrhkk/yii2-kindeditor "*"

or add, (*4)

"anrhkk/yii2-kindeditor": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

<?= \anrhkk\kindeditor\KindEditorWidget::widget([
    'name' => 'content',
    'options' => [], // html attributes
    'clientOptions' => [
        'width' => '680px',
        'height' => '350px',
        'themeType' => 'default', // optional: default, simple, qq
        'langType' => 'zh_CN', // optional: ar, en, ko, zh_CN, zh_TW
        ...
    ],
]); ?>

or use with a model:, (*7)

<?= \anrhkk\kindeditor\KindEditorWidget::widget([
    'model' => $model,
    'attribute' => 'content',
    'options' => [], // html attributes
    'clientOptions' => [
        'width' => '680px',
        'height' => '350px',
        'themeType' => 'default', // optional: default, simple, qq
        'langType' => 'zh_CN', // optional: ar, en, ko, zh_CN, zh_TW
        ...
    ],
]); ?>

For full details on usage, see the documentation., (*8)

The Versions

05/11 2015

dev-master

9999999-dev

yii2-kindeditor编辑器

  Sources   Download

MIT

The Requires

 

by Avatar anrhkk

yii2 kindeditor