started refactoring from CodeMirror to Ace code editor