diff --git a/html/editor.html b/html/editor.html index e66cb0e..35f12bd 100644 --- a/html/editor.html +++ b/html/editor.html @@ -5,7 +5,15 @@ Editor -
+
+ + +
+
+ +
diff --git a/js/editor.js b/js/editor.js index 06300aa..babc72a 100644 --- a/js/editor.js +++ b/js/editor.js @@ -22,6 +22,9 @@ window.addEventListener("load", () => { reader.readAsText(files[0]); }); + // Upload on save button + document.querySelector('#saveButton').addEventListener('click', upload); + // download input JSON document.querySelector('#jsonInputDownload').addEventListener('click', () => { let dl = document.createElement('a');