asmoday74/yii2-ckeditor5
最新稳定版本:1.0.2
Composer 安装命令:
composer require asmoday74/yii2-ckeditor5
包简介
CKEditor 5 WYSIWYG widget for Yii2
README 文档
README
CKEditor 5 WYSIWYG widget for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist asmoday74/yii2-ckeditor5 "*"
or add
"asmoday74/yii2-ckeditor5": "*"
to the require section of your composer.json file.
Usage
Examples of using:
use asmoday74\ckeditor5\EditorClassic; ... <?= $form->field($model, 'content')->widget(EditorClassic::className(),[ 'clientOptions' => [ 'language' => 'en', 'uploadUrl' => 'upload', //url for upload files 'uploadField' => 'image', //field name in the upload form ] ]); ?>
use asmoday74\ckeditor5\EditorInline; //..or EditorBalloon ... <?php EditorInline::begin([ 'name' => 'editor-inline', 'clientOptions' => [ 'language' => 'en', 'uploadUrl' => 'upload' ] ]);?> <h1>The three greatest things you learn from traveling</h1> <p>Like all the great things on earth traveling teaches us by example. Here are some of the most precious lessons I’ve learned over the years of traveling.</p> <?php EditorInline::end();?>
Look for detailed documentation and examples on the official website of CKEditor 5 https://ckeditor.com/ckeditor-5/
统计信息
- 总下载量: 6.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-09-24