title: Replace content of the line (in ace.editor) and overwrite it
body: <p>I have some Content in an ace.editor. and now i have an Trigger-Button which puts new text in that actual line - this works, but i want to overwrite the complete content in line (filled with Tabs and numbers) like this:</p>
  
  <p><a href="//i.stack.imgur.com/O2kBi.png" rel="nofollow"><img src="//i.stack.imgur.com/O2kBi.png" alt=""></a></p>
  
  <p>That line, where the Cursor has his actual possition should be overrited complete and filled with new Content. with my code (see below) i can write in the Editor but it will not overwrite it.</p>
  
  <p>See my code, like i tryed:</p>
  
  <pre><code>function Textuebergabe_NP01(text) {
      null_tabelle_dues1_text.insert(
         null_tabelle_dues1_text.replace(/^.*,\s*RA:\s*/, "") + text + '\r\n    '
      );
  }
  </code></pre>