kak / ckeditor
Yii2 ckeditor widget
Installs: 192
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- bower-asset/font-awesome: ~4.6.0@stable
- ckeditor/ckeditor: 4.4.7
- yiisoft/yii2-imagine: *
This package is auto-updated.
Last update: 2024-12-22 06:42:20 UTC
README
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', ], ]; }