code: void save() {
  
          try {
              byte[] content = m_codeMirror.getValue().getBytes(m_file.getEncoding());
              m_file.getFile().setContents(content);
              A_CmsUI.getCmsObject().writeFile(m_file.getFile());
              m_changed = false;
              m_save.setEnabled(false);
              m_saveAndExit.setEnabled(false);
          } catch (Exception e) {
              CmsErrorDialog.showErrorDialog(e);
          }
      }
docs: Saves the current editor content.<p>