title: Remove first line from Textarea
body: <p>I have a tool that removes the blank lines from a confirmation (text) but for some reason there is a top line that is not being read as blank line and does not get deleted. 
  <br><br>
  Currently my tool allows a person to paste text into the textarea then when "remove spaces &amp; copy" button is clicked blank lines are removed and text is copied to the clipboard. 
  <br><br>
  I want to keep the same function but somehow delete the first line either when text is entered into the textarea or when "remove spaces &amp; copy" button is clicked.</p>
  
  <pre><code> &lt;script&gt;
   function copyToClipboard(element) {
    var text = $(element).clone().find('br').prepend('\r\n').end().text()
    element = $('&lt;textarea&gt;').appendTo('body').val(text).select()
    document.execCommand('copy')
    element.remove()
    }
    &lt;/script&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;textarea name="mas" rows="100" rows="50" contenteditable="true" id="p20" class="content" onchange="this.value=this.value.replace(/[\n\r](?!\w)/gi,'');" style="height: 500px; width:800px;" type="text" data-bind="value: myValue, hasFocus: cleared"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p><br><br></p>
  
  <pre><code>&lt;!----------- BUTTONS ------------&gt;
  &lt;div class="fixed"&gt;
  &lt;button onclick="copyToClipboard('#p20')" class="templateBtn"&gt;Remove Spaces &amp; Copy&lt;/button&gt;
  &lt;input type="button" data-bind="click: clearValue" value="clear" class="templateBtn" /&gt;
  &lt;script type="text/javascript"&gt;
      var viewModel = {
     myValue: ko.observable(''),
     cleared: ko.observable(false),
     clearValue: function() {       
     this.myValue('');   
     this.cleared(true);
      }
    };
  
    ko.applyBindings(viewModel);
     &lt;/script&gt;
  
    &lt;!----------- END.BUTTONS ------------&gt;
  
   &lt;div class="mas" id="hide" &gt;&lt;/div&gt;
  
   &lt;pre contenteditable="true" id="p20" class="templateText"&gt;
  
   &lt;/div&gt;&lt;/div&gt;
  </code></pre>