<div contenteditable="true">This text is <b>Bold</b> not <i>Italic</i> right?</div>
For example if
text is Bold not
is selected by the user, how do i know the exact position(offset) of the selection (highlight). I have read several articles about this but could not find one that explain. Thanks