Skip to content
Snippets Groups Projects
Commit 81e57d09 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed a minor issue

parent 824635f1
Branches
No related tags found
No related merge requests found
......@@ -51,13 +51,19 @@
};
fakeDescription.innerHTML = "";
actualDescription.value.split("\n").forEach((line) => {
const textNode = document.createTextNode(line);
const brNode = document.createElement("br");
fakeDescription.appendChild(textNode);
fakeDescription.appendChild(brNode)
});
fakeTitle.addEventListener("input", fakeTitleListener);
fakeTitle.addEventListener("keypress", fakeTitleListener);
fakeDescription.addEventListener("input", fakeDescriptionListener);
fakeDescription.addEventListener("keypress", fakeDescriptionListener);
fakeDescription.innerHTML = fakeDescription.innerText.replace("\n", "<br>")
</script>
{{end}}
{{end}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment