From 8ad93c84a2b309cc7a8255fae2fe63f975c7d3c1 Mon Sep 17 00:00:00 2001 From: sakhalifa <104624248+sakhalifa@users.noreply.github.com> Date: Wed, 15 May 2024 16:28:12 +0200 Subject: [PATCH] Fix/editor/false gt char (#73) * add a very cool loading screen to avoid premature interactions. * move drag and drop to editor instead of file button * fix greater than character not being fetched correctly --- src/ui/editor/editor.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/editor/editor.js b/src/ui/editor/editor.js index 4e04106..4935d5d 100644 --- a/src/ui/editor/editor.js +++ b/src/ui/editor/editor.js @@ -74,9 +74,7 @@ export function initEditor() { } export function getCode() { - return currentTextValue.map(function (x) { - return x.replaceAll("\n", ""); - }).join("\n"); + return Array.from(code.children, (d) => d.textContent).join("\n") } export function setCode(text) {