jsoneditorview Widget taht will enable to edit JSON structures using WYSWIG-like, jQuery JSON Editor

  1. Documentation
  2. Change Log

WYSWIG-like JSON format editor, witch uses jQuery, JSON Editor plugin

Now package also have class CJuiJSONEditorInput, it can be used as an raw input field, or an input field for an ActiveRecord forms

Resources

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions
Usage

See the following code example:

// raw editor only
$this->widget('ext.jsonEditorView.JSONEditorView', array(
   'data'=>'{"value":"Initial JSON data-string"}',
));

// Input field, raw format
$this->widget('ext.jsonEditorView.JuiJSONEditorInput', array(
   'name'=>'field_name',
   'data'=>'{}' // Initial JSON data string
));

// Input field, ActiveRecord format
$this->widget('ext.jsonEditorView.JuiJSONEditorInput', array(
   'model'=>$model // ActiveRecord, or any CModel child class
   'attribute'=>'attribute_name' // Model attribute holding initial JSON data string
));

Change Log

2011.01.06
  • fixed bug that widget produced broken JS on empty data field
September 19, 2010
  • fixed bug with wrong jQuery selector
September 17, 2010
  • Added ability to send modified JSON contents in POST form
  • Added JuiJSONEditorInput widget
September 16, 2010
  • Initial release.
13 1
9 followers
951 downloads
Yii Version: 1.1
License: LGPL-3.0
Category: User Interface
Developed by: canni
Created on: Sep 16, 2010
Last updated: 13 years ago

Downloads

show all

Related Extensions