瀏覽代碼

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

master
KaiSD 4 年之前
父節點
當前提交
a85e09aa28
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      ace/index.html

+ 3
- 1
ace/index.html 查看文件

@@ -39,7 +39,9 @@
showGutter: false,
autoScrollEditorIntoView: true
})
editor.getSession().setValue(localStorage.getItem("acetest"));
editor.setValue(localStorage.getItem("acetest"));
editor.clearSelection();
editor.getSession().on('change', function () {
localStorage.setItem("acetest", editor.getSession().getValue());


Loading…
取消
儲存