2017 © Pedro Peláez
 

yii2-extension yii2-redactor

Extension redactor for Yii2 Framework.

image

mirocow/yii2-redactor

Extension redactor for Yii2 Framework.

  • Wednesday, August 19, 2015
  • by Mirocow
  • Repository
  • 1 Watchers
  • 0 Stars
  • 61 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 92 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2-redactor

Latest Stable Version Total Downloads Latest Unstable Version, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Add github repository

    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/mirocow/yii2-redactor.git"
        }
    ]

and then, (*3)

php composer.phar require --prefer-dist "mirocow/yii2-redactor" "*"

or add, (*4)

"mirocow/yii2-redactor" : "*"

to the require section of your application's composer.json file., (*5)

Configurate


'components' => [ 'redactor' => [ 'class' => 'yii\redactor\RedactorModule' ], ]

Using

use yii\redactor\widgets\Redactor;

        <?= Redactor::widget(
          [
            'model' => $model,
            'attribute' => 'description',
            'options' => [
              'style' => 'width: 100%; height: 340px;',
            ],
            'clientOptions' => [
                        'imageManagerJson' => \yii\helpers\Html::url('/redactor/upload/imagejson'),
                        'imageUpload' => \yii\helpers\Html::url('/redactor/upload/image'),
                        'fileUpload' => \yii\helpers\Html::url('/redactor/upload/file'),
                        'lang' => 'en',
                        'plugins' => ['fontcolor', 'filemanager', 'imagemanager', 'table', 'undoredo'],
                        'placeholder' => 'Please add description',
            ],
          ]
        ); ?>   

The Versions

19/08 2015

dev-master

9999999-dev http://www.yiidoc.com/

Extension redactor for Yii2 Framework.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 wysiwyg imperavi redactor html editor