yii-redactorjs-wysiwyg-widget Redactor Fantastic WYSIWYG-editor on jQuery

Yii-RedactorJS-Widget

  1. Using with a model
  2. Using with a model and a mini toolbar and different language
  3. Using with a model and custom toolbar options
  4. Using with a name and value

Yii Widget for the WYSIWYG RedactorJS editor

Requirements

  1. Using with a model
  2. Using with a model and a mini toolbar and different language
  3. Using with a model and custom toolbar options
  4. Using with a name and value
  • JQuery > 1.7.1
  • Browser:
  • Firefox 3+
  • Safari 4+
  • Chrome 4+
  • Opera 10+
  • IE 7+

Installation

  1. Using with a model
  2. Using with a model and a mini toolbar and different language
  3. Using with a model and custom toolbar options
  4. Using with a name and value
  1. Download or Clone the files
  2. Extract into the widgets folder or extensions folder

Usage

  1. Using with a model
  2. Using with a model and a mini toolbar and different language
  3. Using with a model and custom toolbar options
  4. Using with a name and value

Using with a model

$this->widget('application.widgets.redactorjs.Redactor', array( 'model' => $model, 'attribute' => 'some_attribute' ));

Using with a model and a mini toolbar and different language

$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

Using with a model and custom toolbar options

$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

Using with a name and value

$this->widget('application.widgets.redactorjs.Redactor', array( 'name' => 'some name', 'value' => 'some value' ));

Authors

  1. Using with a model
  2. Using with a model and a mini toolbar and different language
  3. Using with a model and custom toolbar options
  4. Using with a name and value

Vincent Gabriel http://vadimg.com

24 0
48 followers
3 931 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Vince.
Created on: May 27, 2012
Last updated: 6 years ago

Downloads

show all

Related Extensions