2017 © Pedro Peláez
 

yii2-widget kindeditor

kindeditor for yii2.

image

djfly/kindeditor

kindeditor for yii2.

  • Saturday, April 12, 2014
  • by djfly
  • Repository
  • 1 Watchers
  • 4 Stars
  • 157 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

kindeditor

kindeditor for yii2, (*1)

Installation

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

Either run, (*3)

php composer.phar require djfly/kindeditor "*"

or add, (*4)

"djfly/kindeditor": "*"

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

and download kindeditor put it into assets dir, Because there is no composer package for kindeditor, (*6)

Usage

<?=\djfly\kindeditor\KindEditor::widget([
    'id' => 'post-content',
    'model' => $model,
    'attribute' => 'content',
    'items' => [
        'langType' => Yii::$app->language, // 'en' , 'zh-CN'
        'height' => '300px',
        'themeType' => 'simple',
        'allowImageUpload' => true,
        'allowFileManager' => true,
        'uploadJson' => 'upload_json.php',
        'fileManagerJson' => '../php/file_manager_json.php',
        'items' => [
            'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
            'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
            'insertunorderedlist', '|', 'emoticons', 'image', 'link',
        ]
    ],
])?>

DOCUMENTATION

source https://github.com/kindsoft/kindeditor, (*7)

official kindeditor http://kindeditor.net/, (*8)

The Versions

12/04 2014

dev-master

9999999-dev https://github.com/djfly/kindeditor

kindeditor for yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar djfly

yii2 kindeditor