title: How to get div with selected text?
body: <p>I have <code>div</code> with <code>contenteditable="true"</code>. How to get <code>div</code> by select text? For example</p>
  
  <pre><code>&lt;div class="md-editor" contenteditable="true"&gt;&lt;div class="imustgetthidivbyselecttext"&gt;help&lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I select text, how to get class that is in <code>div</code> text?</p>