title: Wordpress wp_editor won't add image
body: <p>I have the following code inside a plugin in a loop, so there are multiple WYSIWYG editors: </p>
  
  <pre><code>&lt;?php wp_editor( stripslashes($arr['item-content']), $key.'-item-content', array(
      'editor_class' =&gt; 'tsort-contarea',
      'media_buttons' =&gt; true,
      'editor_height' =&gt; 360,
  
  ) ); ?&gt;
  </code></pre>
  
  <p>When adding an image, the XHR request labelled <code>send-attachment-to-editor</code> inside <code>wp-includes/js/media-editor.js</code> has a <code>wp.media.view.settings.post.id</code> of 0. Also, <code>wp.media.view.settings.nonce.sendToEditor</code> is always this value: <code>e8b2eea867</code></p>
  
  <pre><code>return wp.media.post( 'send-attachment-to-editor', {
                  nonce:      wp.media.view.settings.nonce.sendToEditor,
                  attachment: options,
                  html:       html,
                  post_id:    wp.media.view.settings.post.id
              }); 
  </code></pre>
  
  <p>The xhr request fires off fine, but doesn't add to any of the WYSIWYG. I'm sure that's because the post_id isn't set or because the nonce is not unique. What can I do to make this work? The Media Manager works absolutely fine on content pages.</p>
  
  <p>Source file: <a href="http://pastebin.com/BhvqBLGB" rel="nofollow">http://pastebin.com/BhvqBLGB</a></p>