title: HTML Content Editable div: select text event
body: <p>I have a div which is <strong>contenteditable</strong></p>
  
  <p><code>&lt;div class="editable" contenteditable="true"&gt;&lt;/div&gt;</code></p>
  
  <p>The user can enter any content in there. Is there any way to get the event for when a user makes a selection within the div.</p>
  
  <p>Something like:</p>
  
  <pre><code>$('.editable').onSelection(function(e, selection){alert(selection);}
  </code></pre>