title: inserting html into yahoo's YUI rich text editor
body: <p>I am trying to insert HTML into the YUI rich text editor. The code works if I use simple HTML snippets, but if I use something more complicated (e.g. try to embed an object), then it fails. </p>
  
  <p><strong>Edit</strong></p>
  
  <p>Fails - only for FF browser</p>
  
  <p>For example - this works:</p>
  
  <pre><code>var html = '&lt;div&gt;&lt;b&gt;&lt;u&gt;Hello world!&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;';
  myEditor.execCommand('inserthtml', html);
  </code></pre>
  
  <p><strong>But this dosen't work:</strong></p>
  
  <pre><code>var html = '&lt;div&gt;&lt;object width="640" height="385"&gt;&lt;param name="movie" value="http://www.youtube.com/v/OVXIh4q-OmM?fs=1&amp;amp;hl=en_GB&amp;amp;rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/OVXIh4q-OmM?fs=1&amp;amp;hl=en_GB&amp;amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;';
  
  myEditor.execCommand('inserthtml', html);
  </code></pre>
  
  <p>Does anyone know why?</p>