implement CodeMirror instead of Ace Editor