Skip to content

dmmsoft/yii2-kindeditor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KindEditor Widget for Yii2

KindEditor Widget for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"sailinghang/yii2-kindeditor": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \sailinghang\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:

<?= \sailinghang\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.

About

yii2-kindeditor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.3%
  • CSS 3.8%
  • PHP 2.8%
  • HTML 1.1%