Browse Source

Изменить 'ace/index.html'

master
KaiSD 5 years ago
parent
commit
39b46fc105
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      ace/index.html

+ 5
- 0
ace/index.html View File

@@ -39,6 +39,11 @@
showGutter: false, showGutter: false,
autoScrollEditorIntoView: true autoScrollEditorIntoView: true
}) })
editor.getSession().setValue(localStorage.getItem("acetest"));
editor.getSession().on('change', function () {
localStorage.setItem("acetest", editor.getSession().getValue());
});
</script> </script>


</body> </body>


Loading…
Cancel
Save