Crossdomain TinyMCE
Posted
by pistacchio
on Stack Overflow
See other posts from Stack Overflow
or by pistacchio
Published on 2010-05-24T12:15:39Z
Indexed on
2010/05/24
12:21 UTC
Read the original article
Hit count: 448
JavaScript
|tinymce
Hi,
folling this discussion and this link, I learnt that by adding document.domain = 'mydomain.com';
to the tinyMCE initializer file and tiny_mce_popup.js i can overcome the cross domain problem.
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.
Adding document.domain = 'localhost:8000';
or document.domain = 'localhost:88';
doesn't solve the problem as I get the following error:
Uncaught Error: SECURITY_ERR: DOM Exception 18
Any help?
Thanks
© Stack Overflow or respective owner