yii2ckeditor Really basic ckeditor wrapper

Yii2 ckeditor widget

  1. Full code @ github
  2. Installation
  3. Usage

Full code @ github

Installation

The preferred way to install this extension is through composer.

To install, either run

$ php composer.phar require edofre/yii2-ckeditor "@dev"

or add

"edofre/yii2-ckeditor": "@dev"

to the `require` section of your composer.json file.

Usage

ActiveForm usage with a model
<?= $form->field($model, 'body')->widget(\edofre\ckeditor\CKEditor::className(), [
    'editorOptions' => [
        'language' => 'nl',
    ],
]) ?>
Usage without model
<?= \edofre\ckeditor\CKEditor::widget([
    'name'          => 'content',
    'editorOptions' => [
        'height'      => '400px',
    ],
]) ?>
1 0
1 follower
0 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: EdoFre
Created on: Jun 7, 2016
Last updated: 8 years ago

Related Extensions