Django管理员中的微小MCE弹出窗口空白 [英] Tiny MCE popups blank in Django admin

查看:173
本文介绍了Django管理员中的微小MCE弹出窗口空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在django管理员中使用了tinyMCE,但是所有弹出窗口都是空白的
(例如编辑HTML,添加图像)

I have got tinyMCE working in the django admin, but all the popups are blank (eg. edit HTML, add image)

弹出的html页面都存在于正确的地方

The paths to the popup html pages all exist in the right places

http://thatch.media/js/tiny_mce/themes/advanced/source_editor.htm?mce_rdomain=thatch

在整个js文件夹中,权限设置为777

The permissions are set to 777 on the whole js folder

这是我的模型

class Page(models.Model):
    title = models.CharField(max_length=200)
    ...

    class Admin:
        js = ('js/tiny_mce/tiny_mce.js', 'js/textareas.js')

任何想法?

推荐答案

我将媒体从 http://thatch.media http://茅草/媒体
,现在它的作品

I changed the media from being served from http://thatch.media to be http://thatch/media and now it works

也许如此与不同的域名相关吗?

Maybe something to do with being in different domains?

这篇关于Django管理员中的微小MCE弹出窗口空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆