panix/wgt-codemirror

Widget codemirror

Installs: 133

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:pixelion-component

dev-master 2021-02-01 10:57 UTC

This package is auto-updated.

Last update: 2024-05-29 04:55:31 UTC


README

Widget for Yii Framework 2.0 to use CodeMirror

Latest Stable Version Total Downloads Monthly Downloads Daily Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

Either run

php composer require --prefer-dist panix/wgt-codemirror "*"

or add

"panix/wgt-codemirror": "*"

to the require section of your composer.json file.

Configuration

Опция Тип Описание
theme string Тема
base string text/html

Examaple

<?php
    echo $form->field($model, 'code')->widget(CodeMirrorTextArea::class, [
        // options
    ]);
 ?>