title: Load CKEDITOR in iframe doesn't work in firefox
body: <p>I'm trying to load a full page into an iframe and replace a div with an CKEditor in that:  </p>
  
  <pre><code>&lt;body onload="fillframe();"&gt;
      &lt;iframe id="edit-frame" width="1000" height="1000"&gt;&lt;/iframe&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>This is the function to fill the iframe with my page and replace some content inside:</p>
  
  <pre><code>$frame = document.getElementById("edit-frame");
  
  function fillframe() {
  
      $win = $frame.contentWindow;
      $doc = $win.document;
  
      // fill iframe with page
      $doc.body.innerHTML = '&lt;html&gt;&lt;head&gt;...&lt;/head&gt;&lt;body&gt;&lt;textarea id="editor"&gt;&lt;h1&gt;CONTENT&lt;/h1&gt;&lt;/textarea&gt;&lt;/body&gt;&lt;/html&gt;';
  
      // load the ckeditor script:
      // CKEDITOR has to be loaded inside the
      // window it will be used in
      var script = $doc.createElement("script");
      script.type = "text/javascript";
      script.src = "ckeditor/ckeditor.js";
      $doc.head.appendChild(script);
  
      // try to replace textarea in iframe
      $win.CKEDITOR.replace("editor");
  
  }
  </code></pre>
  
  <p>This works perfectly in chrome, but not in firefox. Firefox replaces the textarea inside my frame with the CKEDITOR, but CKEDITOR is completely disabled.The content inside of the textarea is not loaded in firefox:</p>
  
  <p><img src="https://i.stack.imgur.com/Mq9Vi.png" alt="enter image description here"></p>
  
  <p>But i can access it via console. <code>$win.CKEDITOR.instances.editor</code> for example returns me the whole CKEDITOR instance, where it says <code>status: loaded</code> inside the object.</p>
  
  <p>Any ideas, what could be the problem?
  Thanks in advance!</p>