devgroup/yii2-ace-widget Yii2 ACE widget

aceace-editor

ACE Editor Extension for Yii 2

This extension provides the ACE integration for the Yii2 framework.

Installation

This extension requires ace-builds

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist devgroup/yii2-ace-widget "*"

or add

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

to the require section of your composer.json.

General Usage

use devgroup\ace\Ace;

Ace::widget([
    'mode' => 'php', // editor mode
    'name' => '', // editor name
    'options' => [], // html options
    'theme' => 'github', // editor theme
    'value' => '', // editor default value
]);

or

in view file

<?= yii\helpers\Html::textarea('', '', ['data-editor' => 'html', 'data-read-only' => false]) ?>

and your controller

use devgroup\ace\AceHelper

...
AceHelper::setAceScript(controller, theme);
...

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v1.3.0 is the latest of 4 releases



GPL-3.0+ license
Stats
2 github stars & 0 github forks
0 downloads in the last day
3 downloads in the last 30 days
14198 total downloads