Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Yii Widget for the Aloha Editor

branch: master

bug fxies

latest commit 9dc0be6340
Vincent Gabriel authored September 01, 2012
Octocat-spinner-32 widgets bug fxies September 01, 2012
Octocat-spinner-32 readme changs June 17, 2012


Yii Widget for the Aloha Editor


  • JQuery > 1.7.1
  • Browser:
    • Firefox 3+
    • Safari 4+
    • Chrome 4+
    • Opera 10+
    • IE 7+


  1. Download or Clone the files
  2. Extract into the widgets folder or extensions folder


Using with a model

$this->widget('application.widgets.alohaeditor.AlohaEditor', array( 'model' => $model, 'attribute' => 'some_attribute', 'showTextarea' => true ));
  • By default 'showTextarea' is set to false

Using selector to set multiple elements editable

$this->widget('application.widgets.alohaeditor.AlohaEditor', array( 'selector' => '.editable' ));

Using with a model and a basic toolbar

$this->widget('application.widgets.alohaeditor.AlohaEditor', array('toolbar' => 'basic', 'model' => $model, 'attribute' => 'some_attribute' ));
  • There are two toolbars supported right now: basic and advanced
  • At any point you can add more plugins to the toolbar by assigned array elements to the plugins property in the widget

Using with a model and a basic toolbar and custom plugins

$this->widget('application.widgets.alohaeditor.AlohaEditor', array('toolbar' => 'basic', 'plugins' => array('extra/hints'), 'model' => $model, 'attribute' => 'some_attribute' ));

Using with a model and a basic toolbar and custom editor settings

$this->widget('application.widgets.alohaeditor.AlohaEditor', array('alohaSettings' => array('lang' => 'fr'), 'model' => $model, 'attribute' => 'some_attribute' ));
  • Supported languages currently: de, en, fr, lv, pl, pt_br, ru, ua
  • Refer to the documentation for a list of supported params for the settings array

Using with a name and value

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


Vincent Gabriel

Something went wrong with that request. Please try again.