title: WPF RichTextBox - Parent element from caret position
body: <p>Consider this document structure:</p>
  
  <p><code>
  <code>&lt;FlowDocument&gt;&lt;Paragraph&gt;loreM Ipsum&lt;/Paragraph&gt;&lt;/FlowDocument&gt;</code>
  </code></p>
  
  <p>And my caret position is between 'M' and 'I' in the RichTextBox. How can I get the parent element from caret position? <em>In this case the parent would be the Paragraph.</em></p>