title: How to make iframe fit into my parent contenteditable div on pasting?
body: <p>I am trying to embed youtube videos in my contenteditable div.The problem is that the iframe already has a width and a height defined beforehand. So it overflows from the div boundaries. I know I can use regex to parse and change the width on pasting the code but I was looking for more reliable solution...Thanks</p>
  
  <p>Here is the code:</p>
  
  <pre><code>$('div[contenteditable]').bind("paste", function(e) {
      e.preventDefault();
      console.log('hello');
      var text =e.originalEvent.clipboardData.getData('text');
      //do something with text to specify width and height of parent
  });
  </code></pre>