   });
      },
      changeObsCode() {
        if (this.cm != null) {
          this.cm.toTextArea();
        }
        if (this.obsSettings == '') {
          this.cm = null;
          return
        }
        textAreaObj = document.getElementById('obsSetting');
        textAreaObj.value = this[this.obsSettings];
        this.cm = CodeMirror.fromTextArea(textAreaObj, this.cmOptions);
        this.cm.on('change', editor => {
          value = editor.getValue();
          if (this.isJsonString(value)) {
   