Skip to content

h0rseduck/yii2-tui-editor

Repository files navigation

Tui Editor for Yii2

Tui Editor for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist h0rseduck/yii2-tui-editor "*"

or add

"h0rseduck/yii2-tui-editor": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \h0rseduck\tuieditor\TuiEditor::widget([
    'editorOptions' => [
        'initialEditType' => 'markdown',
        'previewStyle' => 'vertical',
        'height' => '500px'
    ]
]); ?>
<?= $form->field($model, 'content')->widget(\h0rseduck\tuieditor\TuiEditor::class, [
    'editorOptions' => [
        'initialEditType' => 'markdown',
        'previewStyle' => 'vertical',
        'height' => '500px'
    ]
]); ?>

About

Tui Editor for Yii2

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages