DavidDurman / FlexiJsonEditor

JSON editor jQuery plugin
http://jsonmate.com
Other
560 stars 139 forks source link

Add option to toggle in-line edditing on/off in JsonEditor #21

Open ghost opened 10 years ago

ghost commented 10 years ago

Hi, I modified the jquery.jsoneditor.js script to optionally make the fields that display the JSON structure not-modifiable. Also I changed jsoneditor.js and jsoneditor.html to utilize this option. It's a great addition if you wan't only to display a beautified JSON but not modify it.

It looks like this, not very distinguishable, but the input fields are disabled

screenshot from 2014-05-12 16 05 45

Also changed the jQuery script from 1.6 to 2.1.1, jquery.jsoneditor.js was failing because of the .on method currently on line 53 in my branch

Cheers

mhwest13 commented 10 years ago

+1 works like a champ and is exactly the little bit I was after when I stumbled upon this beauty...

jberger commented 9 years ago

:+1: makes a beautiful editor double as a beautiful visualizer