title: Crossdomain TinyMCE
body: <p>folling <a href="https://stackoverflow.com/questions/1342564/how-to-get-tinymce-popup-to-work-on-django-where-static-and-dymanic-pages-are">this</a> discussion and <a href="http://wiki.moxiecode.com/index.php/TinyMCE:Cross_domain_loading" rel="nofollow noreferrer">this</a> link, I learnt that by adding <code>document.domain = 'mydomain.com';</code> to the tinyMCE initializer file and tiny_mce_popup.js i can overcome the cross domain problem.</p>
  
  <p>I haven't tested it on a proper production server, but in my dev environment the base domain is localhost:8000 and my static files (also tinyMCE ones) are on localhost:88.</p>
  
  <p>Adding <code>document.domain = 'localhost:8000';</code> or <code>document.domain = 'localhost:88';</code> doesn't solve the problem as I get the following error:</p>
  
  <pre><code>Uncaught Error: SECURITY_ERR: DOM Exception 18
  </code></pre>
  
  <p>Any help?</p>
  
  <p>Thanks</p>