CodeMirror versatile text editor as an AngularJS directive