I want to use the Ace editor to save and edit javascript files it\'s not clear in the documentation how to do that.
Lets say you have a button called download, this is how you would do it
I am using the filesaver.js library that you can find HERE
document.getElementById("download").addEventListener("click", ()=>{
var file = new File([editor.getValue()], "zup.js", {type: "text/plain;charset=utf-8"});
saveAs(file);
})