From 39b46fc105ec047b0029e071a3ce4778505115d2 Mon Sep 17 00:00:00 2001 From: KaiSD Date: Tue, 3 Sep 2019 19:00:14 +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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ace/index.html b/ace/index.html index 9c21ea8..5e94df2 100644 --- a/ace/index.html +++ b/ace/index.html @@ -39,6 +39,11 @@ showGutter: false, autoScrollEditorIntoView: true }) + editor.getSession().setValue(localStorage.getItem("acetest")); + + editor.getSession().on('change', function () { + localStorage.setItem("acetest", editor.getSession().getValue()); + });