DeepBlueCLtd / json-schema-editor

JSON Editor focussed on developing/editing JSON Schema documents
https://deepbluecltd.github.io/json-schema-editor/
GNU General Public License v3.0
9 stars 2 forks source link

Update Preview - alternate method #7

Closed pmk65 closed 5 years ago

pmk65 commented 5 years ago

I tried the direct link and it looks good. But having to click the "Update Preview" after every change really annoyed me. 😢 I suggest you add an option so the user can choose if he/she wants to click the "Update Preview" button or have the preview auto update when you make changes in the editor.

Just add a onchange event to the editor, and then update the preview when a change occurs,.

metaEditor.on('change',function() {
  // Update previewEditor 
});
Franciman commented 5 years ago

Oh, good. I think it makes sense to make this the default behavior