Yii2 Ace ( Cloud9 Editor) Widget

0.0.1 2015-02-01 02:07 UTC

This package is auto-updated.

Last update: 2023-01-18 18:54:39 UTC


Latest Stable Version Total Downloads Latest Unstable Version License

Ace ( Cloud9 Editor) source repository can be found here -

Original demo can be found here -


The preferred way to install this extension is through composer.

Either run

$ php composer.phar require "borales/yii2-ace-widget" "*"

or add

"borales/yii2-ace-widget": "*"

to the require section of your composer.json file.

Usage (with default options)

// For your model
echo \borales\widgets\ace\Widget::widget([
    'model' => $model,
    'attribute' => 'attribute_name',

// Using with ActiveForm/ActiveField
echo $this->field($model, 'attribute_name')->widget(

// For basic usage
echo \borales\widgets\ace\Widget::widget([
    'name' => 'editor_name',
    'value' => 'your text code',


  • mode - code language (default is php).
  • theme - color scheme (default is github).
  • editable - whether to display editable text input or just highlight the output (default is true).
  • autocompletion - whether to enable simple autocompletion functionality (only with editable = true).
  • aceOptions - ACE's editor options.