I have a div which is contenteditable
<div class="editable" contenteditable="true"></div>
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.
Something like:
$('.editable').onSelection(function(e, selection){alert(selection);}