Skip to content

fcaldarelli/yii2-ckeditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 CKEditor

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

About

Yii2 CKEditor

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages