Skip to content

masihfathi/yii2-ckeditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ckeditor

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
    ],
]);

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published