title: getSelection not working on image
body: <p>I want to get the selected content inside iframe design mode. I am using following code.</p>
  
  <pre><code>function getIframeSelectionText(iframe) {
      var win = iframe.contentWindow;
      var doc = iframe.contentDocument || win.document;
  
      if (win.getSelection) {
  
          return win.getSelection();
      } else if (doc.selection &amp;&amp; doc.selection.createRange) {
          return doc.selection.createRange().text;
      }
  }
  </code></pre>
  
  <p>i am able to get the text for i cannot get the image that is also selected. Please help.</p>