dakodig/yii2-ckeditor
Composer 安装命令:
composer require dakodig/yii2-ckeditor
包简介
Memudahkan Install extension CKEditor ke Yii2 Framework Project
README 文档
README
Memudahkan Install extension CKEditor ke Yii2 Framework Project
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist dakodig/yii2-ckeditor "dev-main"
or add
"dakodig/yii2-ckeditor": "dev-main"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
echo \dakodig\yii2ckeditor\YiiCKEditor::widget([ 'id' => 'test', 'name' => 'test', 'preset' => 'custom', 'clientOptions' => [ 'toolbar' => ['bold', 'italic', 'underline'], 'plugins' => ['Essentials', 'Paragraph', 'Bold', 'Italic'] ] ]); Dengan Model echo $form->field($model,'annUraian')->widget(\dakodig\yii2ckeditor\YiiCKEditor::class,[ 'preset' => 'custom', 'clientOptions' => [ 'toolbar' => ['bold', 'italic', 'underline'], 'plugins' => ['Essentials', 'Paragraph', 'Bold', 'Italic'] ] ]);
统计信息
- 总下载量: 179
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-20