webschool / yii2-ckeditor
Yii2 CKEditor
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-06-09 03:06:11 UTC
README
CKEditor — a free WYSIWYG editor that can be used on web pages.
Installation
The easiest way to install this extension is via [composer] (http://getcomposer.org/download/).
Either run
composer require webschool/yii2-ckeditor
or add
"webschool/yii2-ckeditor": "^1.*"
in the require
section of your composer.json file.
Using
use webschool\ckeditor\CKEditor; use yii\helpers\Html; CKEditor::widget([ 'editorOptions' => [ 'preset' => 'full', // basic, standard, full ] ]); //или c ActiveForm echo $form->field($model, 'content')->widget(CKEditor::className(),[ 'editorOptions' => [ 'preset' => 'full', // basic, standard, full ], ]);
Configuring CkFinder
If you are using the yii2 advanced package:
In order to use your settings, copy the file "vendor/webschool/yii2-ckeditor/editor/plugins/ckfinder/config.php" to "backend/config/ckfinder/config.php". In "backend/config/ckfinder/config.php", remove all references to the variable "localConfig".
Useful links
CKEditor Api - http://docs.ckeditor.com/
CKEditor Примеры - http://nightly.ckeditor.com/