Просмотр исходного кода

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

master
KaiSD 4 лет назад
Родитель
Сommit
7fd7924924
1 измененных файлов: 4 добавлений и 2 удалений
  1. +4
    -2
      ace/index.html

+ 4
- 2
ace/index.html Просмотреть файл

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


Загрузка…
Отмена
Сохранить