+ 3
js problem [solved]
im unable to debug the following code https://code.sololearn.com/W7nRaIu3nz9S/?ref=app whenever i type Enter, it automatically adds 2 newlines which is unexpected normally clicking enter would add one newline per click
3 Antworten
+ 2
Abhay i was creating an esolang and its ide
btw what does that have to do with the main problem🤔
+ 2
its now solved
i found out that the innerhtml of the contenteditable=true is automatically adjusted to reflect exactly what the user has wrote
and so i changed the js to count the number of divs instead of newlines and now its perfectly working
+ 1
What is idea of ur code
What is it doing