浏览代码

Изменить '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());


正在加载...
取消
保存