javascript - Crossdomain TinyMCE - Stack Overflow

folling this discussion and this link, I learnt that by adding document.domain = 'mydomain';

folling this discussion and this link, I learnt that by adding document.domain = 'mydomain'; to the tinyMCE initializer file and tiny_mce_popup.js i can overe 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

folling this discussion and this link, I learnt that by adding document.domain = 'mydomain.'; to the tinyMCE initializer file and tiny_mce_popup.js i can overe 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

Share Improve this question edited May 23, 2017 at 12:13 CommunityBot 11 silver badge asked May 24, 2010 at 12:15 pistacchiopistacchio 59k110 gold badges287 silver badges434 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 5

The document.domain setting only works if your using subdomains, not pletely different domains (different ports count as different domains). So you can have server1.mydomain. and server2.mydomain., in which case you set domain to mydomain. in both the main page and tiny_mce_popup.js. You can't however use mydomain. and otherdomain.. For more information on these restrictions see https://developer.mozilla/en/DOM/document.domain or http://msdn.microsoft./en-us/library/cc196989(VS.85).aspx

I believe there are plans to adjust the way TinyMCE works so that it can have a CDN version which is usable from any domain, but that doesn't currently exist.

Regards,

Adrian Sutton
http://tinymce.ephox.

Are you using Django ? I've answered this question below pertaining specifically to tinymce in django.

Tiny MCE popups blank in Django admin

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745626148a4636818.html

相关推荐

  • javascript - Crossdomain TinyMCE - Stack Overflow

    folling this discussion and this link, I learnt that by adding document.domain = 'mydomain';

    7小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信