kak/ckeditor Yii2 ckeditor widget

widgetwysiwygckeditorckeditorforyii2

Yii2 ckeditor widget

Yii2 ckeditor widget.

Installation

Composer

The preferred way to install this extension is through Composer.

Either run

php composer.phar require kak/ckeditor "dev-master"

or add

"kak/ckeditor": "dev-master"

to the require section of your composer.json

Usage

    <?= $form->field($model, 'content')->widget(kak\widgets\ckeditor\CKEditor::className(), [
        'clientOptions' => [
            ...
        ]
    ]) ?>

or

    <?= kak\widgets\ckeditor\CKEditor::widget([
        'name' => 'editor_id',
        'clientOptions' => [
            ...
        ]
    ]) ?>

See clientOptions

Configuration Browser plugin (File browser for ckeditor)

add section array to file config\params.php

//...
      'ckeditor' => [
            'browser' => [
                'url' => ['site/browser'], 
                'dirs' => [ 
                    'web dir ' => '@webroot'   // allow dirs
                ],
            ]
        ]
//...      

Create method the SiteController

    public function actions()
    {
        return [
            'browser' => [
                'class' => '\kak\widgets\ckeditor\actions\Browser',
            ],
        ];
    }

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



MIT license
Stats
0 github stars & 0 github forks
0 downloads in the last day
1 downloads in the last 30 days
191 total downloads