Przeglądaj źródła

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

master
KaiSD 4 lat temu
rodzic
commit
7fd7924924
1 zmienionych plików z 4 dodań i 2 usunięć
  1. +4
    -2
      ace/index.html

+ 4
- 2
ace/index.html Wyświetl plik

@@ -40,8 +40,10 @@
autoScrollEditorIntoView: true
})
editor.setValue(localStorage.getItem("acetest"));
editor.clearSelection();
if (localStorage.getItem("acetest") === null) {
editor.setValue(localStorage.getItem("acetest"));
editor.clearSelection();
}
editor.getSession().on('change', function () {
localStorage.setItem("acetest", editor.getSession().getValue());


Ładowanie…
Anuluj
Zapisz