jaslin/yii2-kindeditor

simply kindeditor for yii2 textarea with image upload controller

Installs: 196

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Language:JavaScript

Type:yii2-extension

dev-master 2018-01-28 01:51 UTC

This package is not auto-updated.

Last update: 2024-05-25 15:50:23 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require "jaslin/yii2-kindeditor" "dev-master"

or add

"jaslin/yii2-kindeditor": "dev-master"

to the require section of your application's composer.json file.

Usage Example

In config

'modules'=>[
    'upload' => [
        'class' => 'jaslin\kindeditor\Module',
    ],
]

In view

echo $form->field($model, 'content')->widget(jaslin\kindeditor\KindEditor::className(), ['options' => [],'configs' => []]);

## configs http://kindeditor.net/docs/option.html

HighLight Code Example

jaslin\kindeditor\LightAsset::register($this);