Browse Source

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

master
KaiSD 5 years ago
parent
commit
a85e09aa28
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      ace/index.html

+ 3
- 1
ace/index.html View File

@@ -39,7 +39,9 @@
showGutter: false, showGutter: false,
autoScrollEditorIntoView: true autoScrollEditorIntoView: true
}) })
editor.getSession().setValue(localStorage.getItem("acetest"));
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…
Cancel
Save