Преглед на файлове

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

master
KaiSD преди 4 години
родител
ревизия
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());


Loading…
Отказ
Запис