2017 © Pedro Peláez
 

yii2-extension ckeditor

Yii2 ckeditor widget

image

kak/ckeditor

Yii2 ckeditor widget

  • Tuesday, October 11, 2016
  • by sanchezzzhak
  • Repository
  • 1 Watchers
  • 0 Stars
  • 106 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

Yii2 ckeditor widget

Yii2 ckeditor widget., (*1)

Installation

Composer

The preferred way to install this extension is through Composer., (*2)

Either run, (*3)

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

or add, (*4)

"kak/ckeditor": "dev-master"

to the require section of your composer.json, (*5)

Usage

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

or, (*6)

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

See clientOptions, (*7)

Configuration Browser plugin (File browser for ckeditor)

add section array to file config\params.php, (*8)

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

Create method the SiteController, (*9)

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

The Versions

11/10 2016

dev-master

9999999-dev https://github.com/sanchezzzhak/kak-ckeditor

Yii2 ckeditor widget

  Sources   Download

MIT

The Requires

 

by Tutik Alexsandr

yii2 widget ckeditor wysiwyg ckeditor for yii2