commento.js: use value instead of innerText for textarea

This commit is contained in:
Adhityaa Chandrasekar 2019-09-13 17:26:53 -07:00
parent a9a1dc6376
commit 3ef4a79547

View File

@ -1194,7 +1194,7 @@
text.replaceWith(textareaCreate(id, true));
var textarea = $(ID_TEXTAREA + id);
textarea.innerText = commentsMap[id].markdown.replace(" ", "&nbsp;").replace("\n", "<br>");
textarea.value = commentsMap[id].markdown;
var editButton = $(ID_EDIT + id);