title: Set max length for content editable element
body: <p>I have got this code</p>
  
  <pre><code>&lt;div id="IIYBAGWNBC" contenteditable="true"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>And this in jquery</p>
  
  <pre><code>$("#IIYBAGWNBC").text(function(index, currentText) {
    return currentText.substr(0, 100);
  });
  </code></pre>
  
  <p>How do I prevent the user to enter more than 100 characters in <code>contenteditable</code> <code>div</code></p>