json-editor
json-editor copied to clipboard
Not able to collapse keys on jsonEditor widget!
- I am creating the container for jsonEditor through jQuery
- Initialising jsonEditor instance with the container "Element" and options
- Attaching the element to my DOMTree
var divHolderTrim = createJsonDivHolder(); divHolderTrim.setAttribute("id", "jsonEditor"); var options = {"expand_height": true, "disable_collapse": false}; editor = new JSONEditor(divHolderTrim, options); editor.set(jsonData); editor.expandAll();