Django admin 中的小 MCE 弹出窗口为空白 [英] Tiny MCE popups blank in Django admin

查看:24
本文介绍了Django admin 中的小 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.mediahttp://thatch/media现在它可以工作了

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 admin 中的小 MCE 弹出窗口为空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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