asofter/yii2-imperavi-redactor Imperavi Redactor WYSIWYG widget (OEM-licensed for Yii 2)

imperaviimperaviredactor

Imperavi Redactor 10.2.3 Widget For Yii2

Created for Experitus

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.

Using model

yii\imperavi\Widget::widget([
    // You can either use it for model attribute
    'model' => $my_model,
    'attribute' => 'my_field',

    // or just for input field
    'attribute' => 'my_input_name',

    // Some options, see http://imperavi.com/redactor/docs/
    'options' => [
        'toolbar' => false,
        'css' => 'wym.css',
    ],
]);

Using ActiveForm

use yii\imperavi\Widget;
use yii\widgets\ActiveForm;

$form = ActiveForm::begin();

echo $form->field($model, 'my_field')->widget(Widget::classname(), 'options' => []);

Alternatively you can attach Redactor to already existing DOM element by calling:

yii\imperavi\Widget::widget([
    // Some options, see http://imperavi.com/redactor/docs/
    'options' => [],
]);

The redactor plugins plugged in with packages of resources.

yii\imperavi\Widget::widget([
    'options' => [
        'lang' => 'ru',
    ],
    'plugins' => [
        'fullscreen',
        'clips'
    ]
]);

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require asofter/yii2-imperavi-redactor "*"

or add

"asofter/yii2-imperavi-redactor": "*"

to the require section of your composer.json file.

Changelog

Changelog

2.0.4

  • Imperavi redactor updated to 10.2.5

2.0.3

  • Imperavi redactor updated to 10.2.4

2.0.2

  • Imperavi redactor, plugins and languages updated to 10.2.3

2.0.1

  • Imperavi redactor, plugins and languages updated to 10.1.3

2.0

  • Imperavi redactor, plugins and languages updated to 10.1.1

1.9

  • Imperavi redactor, plugins and languages updated to 10.1.0

1.8

  • Imperavi redactor, plugins and languages updated to 10.0.7

1.7

  • Imperavi redactor, plugins and languages updated to 10.0.5

1.6

  • Imperavi redactor, plugins and languages updated to 10.0.3

1.5

  • Imperavi redactor, plugins and languages updated to 10.0.2
  • Assets for new plugins

1.4

  • Imperavi redactor, plugins and languages updated to 10.0.0

1.3

  • Imperavi redactor, plugins and languages updated

1.2

  • Imperavi redactor, plugins and languages updated to 9.2.0

1.1

  • Imperavi redactor updated to 9.1.9
  • Update plugins
  • Fixed bugs

1.0

  • Initial release (Alexander Yaremchuk)

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



0.0.3 is the latest of 3 releases



BSD-3-Clause license
Stats
86 github stars & 53 github forks
642 downloads in the last day
12836 downloads in the last 30 days
678633 total downloads