Skip to content

This extension provides the Jsoneditor integration for the Yii2 framework.

License

Notifications You must be signed in to change notification settings

DevGroup-ru/yii2-jsoneditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jsoneditor Extension for Yii 2

This extension provides the Jsoneditor integration for the Yii2 framework.

Installation

This extension requires Jsoneditor

The preferred way to install this extension is through composer.

Either run

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

or add

"devgroup/yii2-jsoneditor": "*"

to the require section of your composer.json.

General Usage

use devgroup\jsoneditor\Jsoneditor;

Jsoneditor::widget(
    [
        'editorOptions' => [
            'modes' => ['code', 'form', 'text', 'tree', 'view'], // available modes
            'mode' => 'tree', // current mode
        ],
        'name' => 'editor', // input name. Either 'name', or 'model' and 'attribute' properties must be specified.
        'options' => [], // html options
    ]
)

About

This extension provides the Jsoneditor integration for the Yii2 framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages