Open alexbbb opened 8 years ago
I've found that one way of making the "title" property come back again in the form is to click on "Properties" and then check the "title" property, but is there a way of doing that programmatically?
+1 also having this issue
+1 on this issue.
+1
if I click on "Properties" and then check the "title" property the property is shown only in Google Chrome , not in Internet Explorer.
Quick and temporary solution - remove the line below ( // REMOVED => )
`
setValue: function(value, initial) {
var self = this;
value = value || {};
if(typeof value !== "object" || Array.isArray(value)) value = {};
// First, set the values for all of the defined properties
$each(this.cached_editors, function(i,editor) {
// Value explicitly set
if(typeof value[i] !== "undefined") {
self.addObjectProperty(i);
editor.setValue(value[i],initial);
}
// Otherwise, remove value unless this is the initial set or it's required
else if(!initial && !self.isRequired(editor)) {
// REMOVED => self.removeObjectProperty(i);
}
// Otherwise, set the value to the default
else {
editor.setValue(editor.getDefault(),initial);
}
});`
I tried to remove the line of code but the property checked is
not yet displayed in IE
+1
When updating JSON schema with new optional properties and then loading a JSON which does not have that optional properties, they are not shown in the editor.
How to reproduce: Go to http://jeremydorn.com/json-editor/ and add this property to the person object's properties in the JSON schema:
and then click on "Update Schema"
The new property will be visible in the form and the JSON Output will be refreshed:
Delete this from the JSON output and click on "update form":
Now the "title" property will not be shown anymore. Any ideas on how to solve this issue? Thank you