lav45/yii2-aceeditor Yii2 ajax.org Ace Editor widget

aceeditorcodeeditor

Yii 2 widget AceEditor

This extension allows you to install and use the code editor Ace

DEMO

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist lav45/yii2-aceeditor "1.2.*"

or add

"lav45/yii2-aceeditor": "1.2.*"

Usage

How to call?

use lav45\aceEditor\AceEditorWidget;

echo $form->field($model, 'content')->widget(AceEditorWidget::className(), [
    'theme' => 'xcode',
    'mode' => 'html',
    'showPrintMargin' => false,
    'fontSize' => 14,
    'height' => 300,
    'options' => [
        'style' => 'border: 1px solid #ccc; border-radius: 4px;'
    ]
]);

// Ace editor without model
echo AceEditorWidget::widget([
    'name' => 'description',
    'value' => 'same text',
]);

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.2.0 is the latest of 4 releases



BSD-3-Clause license
Stats
2 github stars & 3 github forks
0 downloads in the last day
1 downloads in the last 30 days
4209 total downloads