Yii Widget for the WYSIWYG RedactorJS editor
- JQuery > 1.7.1
- Browser:
- Firefox 3+
- Safari 4+
- Chrome 4+
- Opera 10+
- IE 7+
- Download or Clone the files
- Extract into the widgets folder or extensions folder
$this->widget('application.widgets.redactorjs.Redactor', array( 'model' => $model, 'attribute' => 'some_attribute' ));
$this->widget('application.widgets.redactorjs.Redactor', array( 'lang' => 'de', 'toolbar' => 'mini', 'model' => $model, 'attribute' => 'some_attribute' ));
- There are two toolbars supported right now: default & mini. By default the widget will load the 'default' toolbar.
- Supported languages currently: de, en, fr, lv, pl, pt_br, ru, ua
$this->widget('application.widgets.redactorjs.Redactor', array( 'editorOptions' => array('autoresize' => true, 'fixed' => true), 'model' => $model, 'attribute' => 'some_attribute' ));
- Referrer to the redactorjs API for the list of supported elements. View Docs
$this->widget('application.widgets.redactorjs.Redactor', array( 'name' => 'some name', 'value' => 'some value' ));
Vincent Gabriel http://vadimg.com