So i am trying to build a web based editor using Monaco, and I would like to save the code that I wrote in the editor in like a file by clicking a button and keep it even if I restart the server How can I do that ?
const value = ``;
const editor = monaco.editor.create(app, {
model: monaco.editor.createModel(
value,
"domain",
monaco.Uri.parse("file:///main.dm")
),
When I start the server, the editor is empty because value=''