2017 © Pedro Peláez
 

yii2-extension yii2-imperavi-redactor

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

image

yiizh/yii2-imperavi-redactor

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

  • Saturday, July 23, 2016
  • by zhangdi
  • Repository
  • 1 Watchers
  • 1 Stars
  • 343 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yii2-imperavi-redactor

Imperavi Redactor WYSIWYG widget (OEM-licensed for Yii)., (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist yiizh/yii2-imperavi-redactor

or add, (*4)

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

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

Usage

<?= yiizh\redactor\Redactor::widget(['name' => 'attributeName']) ?>

Configuring the Imperavi Redactor options should be done using the clientOptions attribute:, (*6)

<?= yiizh\redactor\Redactor::widget(['name' => 'attributeName', 'clientOptions' => ['lang' => \Yii::$app->language]]) ?>

If you want to use the Imperavi Redactor widget in an ActiveForm, it can be done like this:, (*7)

<?= $form->field($model,'attributeName')->widget(Redactor::className(),['clientOptions' =>  ['lang' => \Yii::$app->language]]) ?>

The Versions

23/07 2016

dev-master

9999999-dev https://github.com/yiizh/yii2-imperavi-redactor

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

  Sources   Download

The Requires

 

extension yii2 imperavi redactor

23/07 2016

1.0

1.0.0.0 https://github.com/yiizh/yii2-imperavi-redactor

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

  Sources   Download

The Requires

 

extension yii2 imperavi redactor