From 278b6733079f2eab44476541556910544dff1a1d Mon Sep 17 00:00:00 2001 From: ebolam Date: Fri, 16 Sep 2022 09:21:17 -0400 Subject: [PATCH] Fix for dummy text area ("delete me" span) --- static/koboldai.js | 1 + templates/index_new.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index 856f5039..52ee9cb9 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -123,6 +123,7 @@ function reset_story() { text += "\xa0 "; } dummy_span.textContent = text; + dummy_span.setAttribute("contenteditable", false); story_area.append(dummy_span); var option_area = document.getElementById("Select Options"); while (option_area.firstChild) { diff --git a/templates/index_new.html b/templates/index_new.html index 837f5527..519cf21a 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -49,7 +49,7 @@

Disconnected

- +