title: Contenteditable Div - Cursor position in terms of innerHTML position
body: <p>I've done my research and come across these questions on StackOverflow where people asked this same question but the thing is that they wanted to get the position either in terms of x and y coordinates or column from the left. I want to know what the position of the cursor is with respect to the div's innerHTML. </p>
  
  <p>For example:</p>
  
  <pre><code>innerHTML = "This is the innerHTML of the &lt;b&gt;div&lt;/b&gt; and bla bla bla..."
                                                          ^
                                                    Cursor is here
  </code></pre>
  
  <p>So the result I want for this case is 44. How to do it ?</p>