Having a strange issue with my editor. Every time I type something, it automatically gets reversed because the cursor keeps jumping back to the beginning of the line.
For example, if I type 'Say this', it appears as:
:siht ekil puS
On pressing enter, it becomes:
gniht ot desaerc siht nI
:siht ekil puS
Below is the code for my client side:
const editor = ace.edit("editor");
editor.setTheme("ace/theme/cobalt");
editor.getSession().setMode("ace/mode/javascript");
// Rest of the code goes here...
Spent half an hour trying to resolve this issue :(