masihfathi/yii2-ckeditor

yii2 ckeditor

Installs: 31

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Language:HTML

Type:yii2-extension

1.4 2017-10-02 15:28 UTC

This package is auto-updated.

Last update: 2024-11-12 05:10:09 UTC


README

yii2 ckeditor

Installation

update ckeditor of MihailDev/yii2-ckeditor package and add bidi plugin The preferred way to install this extension is through composer.

Either run

composer require masihfathi/yii2-ckeditor "1.4"

or add

"masihfathi/yii2-ckeditor": "1.4"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

use mihaildev\ckeditor\CKEditor;
use yii\helpers\Html;

CKEditor::widget([
    'editorOptions' => [
        'preset' => 'full', //basic, standard, full 
        'inline' => false, //false
    ]
]);

//ActiveForm

echo $form->field($post, 'content')->widget(CKEditor::className(),[
    'editorOptions' => [
        'preset' => 'full', //basic, standard, full
        'inline' => false, //false
    ],
]);