From 3ef4a7954749f51cc445356f48657dfa737632a4 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Fri, 13 Sep 2019 17:26:53 -0700 Subject: [PATCH] commento.js: use value instead of innerText for textarea --- frontend/js/commento.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index a80a597..afe00ab 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -1194,7 +1194,7 @@ text.replaceWith(textareaCreate(id, true)); var textarea = $(ID_TEXTAREA + id); - textarea.innerText = commentsMap[id].markdown.replace(" ", " ").replace("\n", "
"); + textarea.value = commentsMap[id].markdown; var editButton = $(ID_EDIT + id);