s.templateSettings = newTemplateSettings;
      },
      changeCode() {
        if (this.cm != null) {
          this.cm.toTextArea();
        }
        textAreaObj = document.getElementById('xraySetting');
        textAreaObj.value = this[this.advSettings];
        this.cm = CodeMirror.fromTextArea(textAreaObj, this.cmOptions);
        this.cm.on('change', editor => {
          value = editor.getValue();
          if (this.isJsonString(value)) {
            this[this.advSettings] = value;
          }
     