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

This commit is contained in:
KaiSD committed 2019-09-03 19:02:48 +02:00
1 parent 39b46fc105
commit a85e09aa28
1 file changed
+3 -1
+3 -1
View File
@@ -39,7 +39,9 @@
showGutter: false,
autoScrollEditorIntoView: true
})
editor.getSession().setValue(localStorage.getItem("acetest"));
editor.setValue(localStorage.getItem("acetest"));
editor.clearSelection();
editor.getSession().on('change', function () {
localStorage.setItem("acetest", editor.getSession().getValue());