diff --git a/ace/index.html b/ace/index.html
index 9c21ea8..5e94df2 100644
--- a/ace/index.html
+++ b/ace/index.html
@@ -39,6 +39,11 @@
showGutter: false,
autoScrollEditorIntoView: true
})
+ editor.getSession().setValue(localStorage.getItem("acetest"));
+
+ editor.getSession().on('change', function () {
+ localStorage.setItem("acetest", editor.getSession().getValue());
+ });