diff --git a/ace/index.html b/ace/index.html index 5e94df2..13690eb 100644 --- a/ace/index.html +++ b/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());