2017 © Pedro PelĂĄez
 

yii2-extension yii2-ace-widget

Yii2 Ace (Ajax.org Cloud9 Editor) Widget

image

wbraganca/yii2-ace-widget

Yii2 Ace (Ajax.org Cloud9 Editor) Widget

  • Friday, September 11, 2015
  • by wbraganca
  • Repository
  • 1 Watchers
  • 0 Stars
  • 800 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 71 % 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 "wbraganca/yii2-ace-widget" "*"

or add, (*6)

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

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

Usage

 'editor_name',
    'value' => 'your text code',
]);

// Ace editor with emmet
$this->registerJsFile('https://cloud9ide.github.io/emmet-core/emmet.js');
echo AceEditorWidget::widget([
    'id' => 'attribute_id',
    'model' => $model,
    'attribute' => 'attribute_name',
    'theme' => 'sqlserver',
    'extensions' => [
        'emmet'
    ],
    'aceOptions' => [
        'showPrintMargin' => false,
        'minLines' => 20,
        'maxLines' => 500,
        'newLineMode' => 'unix'
    ]
]);
?>

Options

  • varNameAceEditor - global javascript variable (default is aceEditor).
  • 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

11/09 2015

dev-master

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

Yii2 Ace (Ajax.org Cloud9 Editor) Widget

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 ace ace-editor cloud9 editor

11/09 2015

1.0.0

1.0.0.0 https://github.com/wbraganca/yii2-ace-widget

Yii2 Ace (Ajax.org Cloud9 Editor) Widget

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 ace ace-editor cloud9 editor