CodeMirror Recorder using Angular