I'm having a problem with TinyMCE and Django. I'm using the TinyMCE module for basic Form field support.
The problem comes when TinyMCE wants to use a popup:
In my development environment, static pages are served from
static.wdw.ms.local:8888
and Django pages are served from wdw.ms.local:8000
(In production, the .local:XXXX is dropped)
If I click on the edit in html button, (or spellcheck, or anything that has a popup), the popup fails. Firebug tells me that "tinymce." is null (the tinymce object)
I've edited the tiny_mce_popup.js and have tried these settings
document.domain = 'wdw.ms.local:8000'; as well as 'wdw.ms.local', 'static.wdw.ms.local', 'static.wdw.ms:8888'
They all give this error (as seen in Firebug):
Permission denied for <http://wdw.ms.local:8000> to get property Window.tinymce from <http://wdw.ms.local:8000>.
[Break on this error] var tinymce=null,tinyMCEPopup,tinyMCE;ti...nyMCEPopup.init();
tinyMCEPopup._wait();\ntiny_mce_popup.js (line 5)
Any ideas on how to get this to work?
(Similar questions have been asked here before, but all the solutions involved changing that document.domain setting, which doesn't work for me. If you look in the comments on these similar questions, you'll notice that many other people have been unable to get this to work)