title: Get current line number in contenteditable
body: <p>I have a contenteditable element which is being used for simple text editing. I need to get the current line number that the caret is on.</p>
  
  <p>Is this possible? Here is my code for the contenteditable element.</p>
  
  <pre><code>&lt;section contenteditable="true" id="writer"&gt;
      &lt;p&gt;write something&lt;/p&gt;
  &lt;/section&gt;
  </code></pre>