dakodig/yii2-ckeditor

Memudahkan Install extension CKEditor ke Yii2 Framework Project

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-main 2024-03-20 07:39 UTC

This package is auto-updated.

Last update: 2024-05-20 08:01:41 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']
       ]
  ]);