yiiext/imperavi-redactor-widget Imperavi Redactor Widget for Yii

wysiwygimpravi

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 both Yii 1.1.x and Yii 2.0.x.

This repository contains an extension for 1.1.x. For 2.0.x check https://github.com/vova07/yii2-imperavi-widget.

Usage

First, import the widget class file

Yii::import('ext.imperavi-redactor-widget.ImperaviRedactorWidget');

Next, call the widget:

$this->widget('ImperaviRedactorWidget', array(
    // You can either use it for model attribute
    'model' => $my_model,
    'attribute' => 'my_field',

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

    // Some options, see http://imperavi.com/redactor/docs/
    'options' => array(
        'lang' => 'ru',
        'toolbar' => false,
        'iframe' => true,
        'css' => 'wym.css',
    ),
));

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

$this->widget('ImperaviRedactorWidget', array(
    // The textarea selector
    'selector' => '.redactor',
    // Some options, see http://imperavi.com/redactor/docs/
    'options' => array(),
));

The redactor plugins plugged in with packages of resources.

$this->widget('ImperaviRedactorWidget', array(
    'selector' => '.redactor',
    'options' => array(
        'lang' => 'ru',
    ),
    'plugins' => array(
        'fullscreen' => array(
            'js' => array('fullscreen.js',),
        ),
        'clips' => array(
            // You can set base path to assets
            'basePath' => 'application.components.imperavi.my_plugin',
            // or url, basePath will be ignored.
            // Defaults is url to plugis dir from assets
            'baseUrl' => '/js/my_plugin',
            'css' => array('clips.css',),
            'js' => array('clips.js',),
            // add depends packages
            'depends' => array('imperavi-redactor',),
        ),
    ),
));

Changelog

Changelog

1.3.18

  • Table plugin updated.
  • Slovak translation.

1.3.17

  • Imperavi redactor updated to 10.2.5 (samdark)

1.3.16

  • Imperavi redactor updated to 10.2.4 (samdark)

1.3.15

  • Imperavi redactor updated to 10.2.3 (samdark)

1.3.14

  • Updated imperavi redactor plugins to 10.2.3 (SDKiller)

1.3.13

  • Imperavi redactor updated to 10.2.2 (samdark)

1.3.12

  • Imperavi redactor updated to 10.2 (samdark)

1.3.11

  • Imperavi redactor updated to 10.1.3 (samdark)

1.3.10

  • Imperavi redactor updated to 10.1.1 (samdark)

10.1.1

1.3.9

  • Imperavi redactor updated to 10.0.9 (samdark)

1.3.8

  • Imperavi redactor updated to 10.0.7 (samdark)

1.3.7

  • Updated plugins (SDKiller)

1.3.6

  • Imperavi redactor updated to 10.0.6 (samdark)

1.3.5

  • Imperavi redactor updated to 10.0.5 (samdark)

1.3.4

  • Updated counter and video plugins (sdkiller)

1.3.3

  • Imperavi redactor updated to 10.0.3 (samdark)

1.3.2

  • Imperavi redactor updated to 10.0.2 (samdark)

1.3.1

  • Imperavi redactor updated to 10.0.1 (samdark)

1.3.0

  • Imperavi redactor, plugins and languages updated to 10.0.0 (samdark)

1.2.23

  • Imperavi redactor updated to 9.2.6 (samdark)

1.2.22

  • Imperavi redactor updated to 9.2.5 (samdark)

1.2.21

  • Imperavi redactor updated to 9.2.4 (samdark)

1.2.20

  • Imperavi redactor updated to 9.2.2 (samdark)

1.2.19

  • Imperavi redactor updated to 9.2.1 (samdark)

1.2.18

  • Fixed partially committed files (samdark)

1.2.17

  • Imperavi redactor, plugins and languages updated to 9.2.0 (samdark)

1.2.16

  • Imperavi redactor updated to 9.1.9 (Veaceslav Medvedev)
  • Update plugins (Veaceslav Medvedev)

1.2.15

  • Imperavi redactor updated to 9.1.8 (samdark)

1.2.14

  • Imperavi redactor updated to 9.1.7 (samdark)

1.2.13

  • Imperavi redactor updated to 9.1.6 (samdark)

1.2.12

  • Imperavi redactor updated to 9.1.5 (samdark)

1.2.11

  • Imperavi redactor updated to 9.1.4 (samdark)

1.2.10

  • Imperavi redactor updated to 9.1.2 (samdark)

1.2.9

  • 30: Fixed an error when adding plug-in with a custom baseUrl (Veaceslav Medvedev)

  • Imperavi redactor updated to 9.1.1 (samdark)

1.2.8

  • Imperavi redactor updated to 9.1.0 (samdark)
  • Languages updated (samdark)

1.2.7

  • Imperavi redactor updated to 9.0.4 (samdark)

1.2.6

  • Imperavi redactor updated to 9.0.2 (samdark)

1.2.5

  • Imperavi redactor updated to 9.0.1 (samdark)
  • Updated languages (samdark)

1.2.4

  • Imperavi redactor updated to 9.0 (Veaceslav Medvedev)

1.2.3

  • Imperavi redactor updated to 8.2.6 (samdark)

1.2.2

  • Imperavi redactor updated to 8.2.5 (samdark)

1.2.1

  • Imperavi redactor updated to 8.2.3 (samdark)

1.2

  • Imperavi redactor updated to 8.2.2 (samdark)

1.1

  • Implemented redactor plugins (Veaceslav Medvedev)
  • Added multi-language support (Veaceslav Medvedev)
  • Script packages are now configurable via ImperaviRedactorWidget::$package (Veaceslav Medvedev)

1.0

  • Bought OEM license for Yii, see license.md (samdark)
  • Imperavi redactor updated to 8.2.1 (samdark)
  • Cleaned up docs and code (samdark)

0.7

  • Imperavi redactor updated to version 8.0.3. (Veaceslav Medvedev)

0.6.2

  • Imperavi redactor updated to version 7.7.1. (Veaceslav Medvedev)

0.6.1

  • Imperavi redactor updated to version 7.7. Important to read redactor changelog (Veaceslav Medvedev)

0.6

  • Imperavi redactor updated to version 7.6.4 (Veaceslav Medvedev)
  • Fix path to script, for correct loading langs (Koduc)

0.5

Warning: this version is not backwards compatible to 0.4

  • Imperavi redactor updated to version 7.6.0 (Veaceslav Medvedev)
  • Add min javascript file. Use it on YII_DEBUG=false (Veaceslav Medvedev)
  • Remove property $packageName (Veaceslav Medvedev)
  • Add property $selector. Defaults to null. The textarea selector. If it null, will be render the textarea. (Veaceslav Medvedev)

0.4

Warning: this version is not backwards compatible to 0.3 and required framework version 1.1.7 or later

  • Imperavi redactor updated to version 7.1.1 (Veaceslav Medvedev)
  • Assets vars group into package (Veaceslav Medvedev)

0.3

  • Imperavi redactor updated to version 6.4.0 (Veaceslav Medvedev)
  • $scriptFile and $cssFile must be the real path (Veaceslav Medvedev)

0.2

  • Imperavi redactor updated to version 6.1.1 (Veaceslav Medvedev)

0.1

  • Initial release (Veaceslav Medvedev)

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v1.3.18 is the latest of 31 releases



proprietary license
Stats
409 github stars & 152 github forks
20 downloads in the last day
384 downloads in the last 30 days
135634 total downloads