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

Fixed a minor issue

parent 81e57d09
No related branches found
No related tags found
No related merge requests found
...@@ -51,13 +51,15 @@ ...@@ -51,13 +51,15 @@
}; };
// Insert <br> between lines instead of \n for editing
fakeDescription.innerHTML = ""; fakeDescription.innerHTML = "";
actualDescription.value.split("\n").forEach((line) => { actualDescription.value.split("\n").forEach((line) => {
const textNode = document.createTextNode(line); const textNode = document.createTextNode(line);
const brNode = document.createElement("br"); const brNode = document.createElement("br");
fakeDescription.appendChild(textNode); fakeDescription.appendChild(textNode);
fakeDescription.appendChild(brNode) fakeDescription.appendChild(brNode);
}); });
fakeDescription.removeChild(fakeDescription.lastChild);
fakeTitle.addEventListener("input", fakeTitleListener); fakeTitle.addEventListener("input", fakeTitleListener);
fakeTitle.addEventListener("keypress", fakeTitleListener); fakeTitle.addEventListener("keypress", fakeTitleListener);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment