Parcourir la source

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

master
KaiSD il y a 4 ans
Parent
révision
7fd7924924
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. +4
    -2
      ace/index.html

+ 4
- 2
ace/index.html Voir le fichier

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


Chargement…
Annuler
Enregistrer