2017 © Pedro Peláez
 

yii2-extension yii2-imperavi-redactor

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

image

asofter/yii2-imperavi-redactor

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

  • Saturday, December 16, 2017
  • by asofter
  • Repository
  • 11 Watchers
  • 86 Stars
  • 147,911 Installations
  • JavaScript
  • 26 Dependents
  • 1 Suggesters
  • 46 Forks
  • 18 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

Imperavi Redactor 10.2.3 Widget For Yii2

Created for Experitus, (*1)

ImperaviRedactorWidget is a wrapper for Imperavi Redactor, a high quality WYSIWYG editor., (*2)

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., (*3)

Using model, (*4)

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, (*5)

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:, (*6)

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

The redactor plugins plugged in with packages of resources., (*7)

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

Installation

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

Either run, (*9)

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

or add, (*10)

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

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

The Versions

16/12 2017

dev-master

9999999-dev

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

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexander Yaremchuk
by Veaceslav Medvedev

yii imperavi imperavi redactor

12/01 2016

0.0.3

0.0.3.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexander Yaremchuk
by Veaceslav Medvedev

yii imperavi imperavi redactor

02/10 2015

0.0.2

0.0.2.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexander Yaremchuk
by Veaceslav Medvedev

yii imperavi imperavi redactor