fabriziocaldarelli/yii2-ckeditor

Yii2 CKEditor

Installs: 82

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Type:yii2-extension

1.0.0 2018-02-16 10:46 UTC

This package is auto-updated.

Last update: 2024-03-17 07:17:41 UTC


README

Yii2 CKEditor

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist fabriziocaldarelli/yii2-ckeditor "*"

or add

"fabriziocaldarelli/yii2-ckeditor": "*"

to the require section of your composer.json file.

Usage

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

<?= $form->field($model, 'textField')->widget(\sfmobile\ext\ckeditor\CKEditor::className(), [
    'pluginOptions' => [
        'height' => '500px'
    ]
]) ?>

Using 'pluginOptions', you can pass all configuration parameters to CKEditor plugin. In the example, I set the height at 500px