Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.23 KB

README.md

File metadata and controls

52 lines (39 loc) · 1.23 KB

CKEditor + KCFinder for Yii 2

WYSIWYG text editor widget with integrated file browser.

This fork is not supported! And is not exported to Packagist. If you still wish to add it to your project, read the following section.

Installation

The preferred way to install this extension is through composer.

Add this repository to your project's composer.json:

"repositories": [
  {
    "type": "vcs",
    "url": "https://github.com/MadAnd/yii2-ckeditor-kcfinder"
  }
],

If your composer.json has stability option set to stable (this is a default value, if not set explicitly), run the following command:

php composer.phar require --prefer-dist "MadAnd/yii2-ckeditor-kcfinder:dev-master" \
    "ckeditor/ckeditor:@dev" "sunhater/kcfinder:@dev"

If your composer.json has stability option set to dev, the following command is sufficient:

php composer.phar require --prefer-dist "MadAnd/yii2-ckeditor-kcfinder:*"

Usage

\MadAnd\ckeditor\CKEditor::widget();

Possible settings (with default values)

  'type' => CKEditor::TYPE_STANDARD,
  'height'=>'200px',
  'language'=>Yii::$app->language,