This package is abandoned and no longer maintained. No replacement package was suggested.

Imperavi Redactor WYSIWYG widget (OEM-licensed for Yii 2)

Installs: 586 868

Dependents: 26

Suggesters: 1

Security: 0

Stars: 87

Watchers: 11

Forks: 52

Open Issues: 17



0.0.3 2016-01-12 16:21 UTC

This package is not auto-updated.

Last update: 2023-08-19 09:50:30 UTC


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

	// 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
	'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:

	// Some options, see
	'options' => [],

The redactor plugins plugged in with packages of resources.

	'options' => [
		'lang' => 'ru',
	'plugins' => [


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.