2017 © Pedro Peláez
 

yii2-extension yii2-kindeditor

KindEditor Widget for Yii2

image

cliff363825/yii2-kindeditor

KindEditor Widget for Yii2

  • Saturday, September 9, 2017
  • by cliff363825
  • Repository
  • 2 Watchers
  • 9 Stars
  • 776 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 7 Forks
  • 6 Open issues
  • 8 Versions
  • 2 % Grown

The README.md

KindEditor Widget for Yii2

Installation

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

Either run, (*2)

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

or add, (*3)

"cliff363825/yii2-kindeditor": "*"

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

Usage

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

1) Without any model:, (*6)

<?= \cliff363825\kindeditor\KindEditorWidget::widget([
    'name' => 'content',
    'options' => [], // html attributes
    'clientOptions' => [
        'width' => '680px',
        'height' => '350px',
        'themeType' => 'default', // optional: default, simple, qq
        'langType' => \cliff363825\kindeditor\KindEditorWidget::LANG_TYPE_ZH_CN, // optional: ar, en, ko, ru, zh-CN, zh-TW
        ...
    ],
]); ?>

2) With an model:, (*7)

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

Notice

  • In version v1.0.5 or later, the language packages was renamed. zh_CN -> zh-CN, zh_TW -> zh-TW.

You may have to modify your code in your project if KindEditorWidget->clientOptions->langType was set zh_CN or zh_TW., (*8)

说简单点,就是你要把langType是zh_CNzh_TW对应改成zh-CNzh-TW。, (*9)

  • The default value of KindEditorUploadAction->savePath is changed to uploads now, NOT @webroot/uploads.

Add a new property basePath and the default value is @webroot., (*10)

  • Remove property KindEditorUploadAction->saveUrl.

Add a new property baseUrl and the default value is @web., (*11)

see the change log, (*12)

Documentation

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

The Versions

09/09 2017

dev-master

9999999-dev

KindEditor Widget for Yii2

  Sources   Download

MIT

The Requires

 

by Avatar cliff363825

yii2 kindeditor

15/05 2017

v1.1.0

1.1.0.0

KindEditor Widget for Yii2

  Sources   Download

MIT

The Requires

 

by Avatar cliff363825

yii2 kindeditor

29/05 2016

v1.0.5

1.0.5.0

KindEditor Widget for Yii2

  Sources   Download

MIT

The Requires

 

by Avatar cliff363825

yii2 kindeditor

24/08 2015

v1.0.4

1.0.4.0

KindEditor Widget for Yii2

  Sources   Download

MIT

The Requires

 

by Avatar cliff363825

yii2 kindeditor

26/04 2015

1.0.3

1.0.3.0

KindEditor Widget for Yii2

  Sources   Download

MIT

The Requires

 

by Avatar cliff363825

yii2 kindeditor

16/01 2015

1.0.2

1.0.2.0

KindEditor Widget for Yii2

  Sources   Download

MIT

The Requires

 

by Avatar cliff363825

yii2 kindeditor

29/11 2014

1.0.1

1.0.1.0

KindEditor Widget for Yii2

  Sources   Download

MIT

The Requires

 

by Avatar cliff363825

yii2 kindeditor

04/10 2014

1.0.0

1.0.0.0

KindEditor Widget for Yii2

  Sources   Download

MIT

The Requires

 

by Avatar cliff363825

yii2 kindeditor