Selaa lähdekoodia

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

master
KaiSD 4 vuotta sitten
vanhempi
commit
7fd7924924
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. +4
    -2
      ace/index.html

+ 4
- 2
ace/index.html Näytä tiedosto

@@ -40,8 +40,10 @@
autoScrollEditorIntoView: true 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 () { editor.getSession().on('change', function () {
localStorage.setItem("acetest", editor.getSession().getValue()); localStorage.setItem("acetest", editor.getSession().getValue());


Loading…
Peruuta
Tallenna