From a85e09aa28594009b57b1eb6bfde2b2ead7863e7 Mon Sep 17 00:00:00 2001 From: KaiSD Date: Tue, 3 Sep 2019 19:02:48 +0200 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'ace/index.html'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ace/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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());