zyx/yii2-imperavi-redactor

A Yii2 port of original Imperavi Redactor Widget for Yii (yiiext/imperavi-redactor-widget)

Installs: 1 754

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 2

Open Issues: 1

Language:JavaScript

Type:yii2-extension

10.2.5.1 2015-10-07 13:37 UTC

This package is not auto-updated.

Last update: 2024-11-19 02:05:56 UTC


README

This is a Yii2 port of original Imperavi Redactor Widget for Yii (yiiext/imperavi-redactor-widget).

ImperaviRedactorWidget is a wrapper for Imperavi Redactor, a high quality WYSIWYG editor.

Note that Imperavi Redactor itself is a proprietary commercial copyrighted software but since Yii community bought OEM license you can use it for free with Yii.

Installation

composer.phar require --prefer-dist zyx/yii2-imperavi-redactor "*"

TBD

Usage

TBD

For more options see Imperavi Redactor documentation

    echo $form->field($model, 'content')->widget(
        Redactor::className(), [
            'options' => [
                'style' => 'height: 300px;'
            ],
            'clientOptions' => [
                'lang'              => 'ru',
                'observeLinks'      => true,
                'convertVideoLinks' => true,
                'autoresize'        => true,
                'placeholder'       => Yii::t('app', 'Redactor placeholder text'),
                'plugins'           => ['table', 'video', 'fontcolor', 'fontfamily', 'fontsize'],
                'buttons'           => ['html', 'formatting', 'bold', 'italic', 'deleted', 'underline', 'horizontalrule',
                                        'alignment', 'unorderedlist', 'orderedlist', 'outdent', 'indent',
                                        , 'link', 'image', 'file'],
                'imageUpload'       => Yii::$app->urlManager->createUrl(['news/upload']),
            ],
        ]
    );