Explorar el Código

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

master
KaiSD hace 4 años
padre
commit
7fd7924924
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      ace/index.html

+ 4
- 2
ace/index.html Ver fichero

@@ -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());


Cargando…
Cancelar
Guardar