2017 © Pedro Peláez
 

yii2-extension yii2-aceeditor

Yii2 ajax.org Ace Editor widget

image

toir427/yii2-aceeditor

Yii2 ajax.org Ace Editor widget

  • Friday, May 4, 2018
  • by toir427
  • Repository
  • 1 Watchers
  • 0 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 38 % Grown

The README.md

Ace Editor Widget For Yii2

About

It is Ace Editor integration for Yii2 framework., (*1)

Demo

Ace Editor demo can be found here, (*2)

Installation

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

Either run, (*4)

composer require toir427/yii2-aceeditor "dev-master"

or add, (*5)

"toir427/yii2-aceeditor": "*"

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

Usage

Using model, (*7)

\toir427\aceeditor\AceEditor::widget([
    // You can either use it for model attribute
    'model' => $my_model,
    'attribute' => 'my_field',

    // or just for input field
    'name' => 'my_input_name',

    'mode'=>'html', // programing language mode. Default "html"
    'theme'=>'github', // editor theme. Default "github"
    'readOnly'=>'true' // Read-only mode on/off = true/false. Default "false"
]);

With active field, (*8)

$form->field($model, 'field')->widget(
        \toir427\aceeditor\AceEditor::className(),
        [
            'mode'=>'html', // programing language mode. Default "html"
            'theme'=>'github', // editor theme. Default "github"
            'readOnly'=>'true' // Read-only mode on/off = true/false. Default "false"
        ]
    )

Lists of all available modes and themes see here, (*9)

The Versions

04/05 2018

dev-master

9999999-dev

Yii2 ajax.org Ace Editor widget

  Sources   Download

BSD-3-Clause

The Requires

 

by Toir Tuychiyev

yii code editor aceeditor