2017 © Pedro Peláez
 

yii2-extension yii2-ace-widget

Yii2 Ace (Ajax.org Cloud9 Editor) Widget

image

borales/yii2-ace-widget

Yii2 Ace (Ajax.org Cloud9 Editor) Widget

  • Sunday, February 1, 2015
  • by borales
  • Repository
  • 1 Watchers
  • 3 Stars
  • 154 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 5 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Yii2 Ace (Ajax.org Cloud9 Editor) Widget

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Ace (Ajax.org Cloud9 Editor) source repository can be found here - https://github.com/ajaxorg/ace., (*2)

Original demo can be found here - http://ace.c9.io/#nav=embedding., (*3)

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

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

or add, (*6)

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

to the require section of your composer.json file., (*7)

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(
    \borales\widgets\ace\Widget::className()
);

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

Options

  • 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.

The Versions

01/02 2015

dev-master

9999999-dev https://github.com/Borales/yii2-ace-widget

Yii2 Ace (Ajax.org Cloud9 Editor) Widget

  Sources   Download

BSD-3-Clause

The Requires

 

by Borales (Alexandr Bordun)

yii2 ace ace-editor cloud9 editor

01/02 2015

0.0.1

0.0.1.0 https://github.com/Borales/yii2-ace-widget

Yii2 Ace (Ajax.org Cloud9 Editor) Widget

  Sources   Download

BSD-3-Clause

The Requires

 

by Borales (Alexandr Bordun)

yii2 ace ace-editor cloud9 editor