Yii extension for WYSIWYG editor Redactor (http://redactor.imperavi.ru/)
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with GreyTeardrop:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
views
RedactorController.php
readme.md
redactor.php

readme.md

#Yii extension for redactor.imperavi.ru

##Install

  1. Extract extension to your folder path/to/extensions/imperavi.

  2. Download editor redactor.imperavi.ru and extract to path/to/extensions/imperavi/assets.

  3. Add to config/main.php:

    'controllerMap' => array( 'redactor' => 'application.extensions.imperavi.RedactorController', ),

##Usage

<?php
$this->widget('application.extensions.imperavi.redactor', array(
    'model' => $model,
    'attribute' => 'text',
    'htmlOptions' => array(
        'style' => 'width: 100%; height: 300px;',
    ),
));
?>