You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the json object is structured correctly (is generated from xsd2json), you can pass the editor a schema attribute with a function that just returns the json object, so something like:
var jsonObj = // get the object
$("#xml_editor").xmlEditor({
schema: function() {
return jsonObj;
}
});
In needs to be in a method like that otherwise I recall it causing cyclical issues
How to I initialise the schema with the json object from a api call? Angular doesn't let me access local files directly.
The text was updated successfully, but these errors were encountered: