dakodig / yii2-ckeditor
Memudahkan Install extension CKEditor ke Yii2 Framework Project
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=7.0
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2025-02-27 07:02:42 UTC
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'] ] ]);