Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 665 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 665 Bytes

Yii2 Baidu UEditor

baidu ueditor for yii2 framework

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist rogeecn/yii2-ueditor "*"

or add

"rogeecn/yii2-ueditor": "*"

to the require section of your composer.json file.

Usage

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

//use mini editor 
<?= $form->field($model, 'name')->widget(UEditor\Mini::className());?>

//use full feature editor
<?= $form->field($model, 'name')->widget(UEditor\Mini::className());?>