title: Enable resize for div inside contenteditable div
body: <p>I have a div with contenteditable set to true. Now I want to enable resize for div inside contenteditable div.</p>
  
  <p>In my example html insert works fine but how to make inserted html div to be resizable?</p>
  
  <p>Code:</p>
  
  <pre><code>function inserthtml() {
      var sel = document.selection;
      if (sel) {
          var textRange = sel.createRange();
          document.execCommand('inserthtml', false, "&lt;div&gt;&lt;img src='https://www.google.com/images/srpr/logo11w.png'  height='42' width='42'&gt;&lt;/div&gt;");
          textRange.collapse(false);
          textRange.select();
      } else {
          document.execCommand('inserthtml', false, "&lt;div&gt;&lt;img src='https://www.google.com/images/srpr/logo11w.png'  height='42' width='42'&gt;&lt;/div&gt;");
      }
  }
  </code></pre>
  
  <p>fiddle: <a href="http://jsfiddle.net/q6q05f1b/" rel="nofollow">http://jsfiddle.net/q6q05f1b/</a></p>