code: function _updateCm(that) {
          var editor = editor_manager.getActiveEditor();
  
          if (!editor || !editor._codeMirror) {
              return;
          }
  
          that.cm = editor._codeMirror;
  
          //Get the path to the current file as well
          var _cd = document_manager.getCurrentDocument();
          if (_cd) {
              that.cd = _cd.file.fullPath;
          }
  
      }
docs: /*
  Sets the CodeMirror instance for the active editor