title: Recognize new line in Quill.JS
body: <p>I want QuillJS to recognize new lines and I just can't figure out how...</p>
  
  <p>For example: I have 4 lines an want to put a "*" in front and at the end of every line, except for the empty one.</p>
  
  <p>example:</p>
  
  <blockquote>
    <p><p> * line1 * </p> <p>empty</p> <p> * line3 * </p> <p> * line4 * </p></p>
  </blockquote>
  
  <p>Thanks in advance! :-)</p>
  
  <p>Edit:
  Here's a snippet/ the current status of my code</p>
  
  <pre><code>var boldButton = document.querySelector('.ql-bold');
  boldButton.addEventListener('click', function() {
          var sel = quill.getSelection();
          if (sel) {
              quill.insertText(sel.index, "*");
              quill.insertText(sel.index+sel.length+1, "*");
              quill.setSelection({index:sel.index+1, length:sel.length});
          }
      })
  </code></pre>