title: caret position into the html of JEditorPane
body: <p>The getCaretPosition method of JEditorPane gives an index into the text only part of the html control. Is there a possibility to get the index into the html text?</p>
  
  <p>To be more specific suppose I have a html text (where | denotes the caret position)</p>
  
  <pre><code>abcd&lt;img src="1.jpg"/&gt;123|&lt;img src="2.jpg"/&gt;
  </code></pre>
  
  <p>Now getCaretPosition gives 8 while I would need 25 as a result to read out the filename of the image.</p>