jdorn / json-editor

JSON Schema Based Editor
MIT License
5.8k stars 1.08k forks source link

Not able to collapse keys on jsonEditor widget! #804

Open ParasAvkirkar opened 6 years ago

ParasAvkirkar commented 6 years ago
  1. I am creating the container for jsonEditor through jQuery
  2. Initialising jsonEditor instance with the container "Element" and options
  3. 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();