Skip to content

Commit

Permalink
Fix/editor/false gt char (#73)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sakhalifa authored May 15, 2024
1 parent b9d9f6f commit 8ad93c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ui/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8ad93c8

Please sign in to comment.