Characters count in a contenteditable div
<p>I'm trying to do a "twitter like" character counter in a <code>contenteditable</code> <code>div</code>. I want to limit the user to typing a max of 140 characters.</p>

<p>I used jQuery to count the characters and show the remaining, but it doesn't count the Enter key (new line) as a character. I need to count the new lines too.</p>

<p>I tried to use a <code>textarea</code>, but I need to specify the <code>max-height</code> for the scrollbar be visible only on the max-height. There is no limit of lines or characters.</p>

<p><strong>DEMO:</strong>
<a href="https://jsfiddle.net/oLomzakh/" rel="nofollow">https://jsfiddle.net/oLomzakh/</a></p>

<p>Can you help me figure out how to include the new line count on the character count?</p>