title: From @ctrl/ngx-codemirror library, how to get the codeMirror instance with typeScript and angular 5
body: <p>I am using the code-mirror wrapper from <a href="https://github.com/TypeCtrl/ngx-codemirror" rel="noreferrer">https://github.com/TypeCtrl/ngx-codemirror</a></p>
  
  <p>I am trying to get the instance of Codemirror or the Editor to edit some actions but I am not able to get the instance.</p>
  
  <p>related question: <a href="https://stackoverflow.com/questions/11581516/get-codemirror-instance">Get CodeMirror instance</a></p>
  
  <p>I need to add a text in the current cursor position on click of a button, thus need the CodeMirror APIs.</p>