webschool/yii2-ckeditor
Composer 安装命令:
composer require webschool/yii2-ckeditor
包简介
Yii2 CKEditor
关键字:
README 文档
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/
统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-04-24