WMD在Django管理? [英] WMD in Django Admin?

查看:157
本文介绍了WMD在Django管理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用WMD和其他这样的JavaScript编辑器使用widget =的常规django表单。但是,如何在Django管理员中使用WMD作为文本字段?最重要的是,如何在管理员的contrib.flatpages中使用它的内容字段?

I know how to use WMD and other such javascript editors in regular django forms using widget=. However, how do I use WMD for text fields in the Django admin? On top of that, how do I use it for the content field on contrib.flatpages in the admin?

另外,我想我可能想使用WMD的StackOverflow分支,所以如果需要,我想要任何特殊的说明。

Also, I think I might like to use the StackOverflow fork of WMD, so I would like any special instructions for that, if necessary.

我知道如何在模板中使用降价过滤器,这样就可以了。我只需要让编辑器在管理界面中显示出来。

I know how to use the markdown filter in the templates, so that part is ok. I just need to get the editor to show up and work in the admin interface.

推荐答案

我放弃了试图使用WMD 。相反,我用了Markitup!截至本次发布的时间,目前版本的WMD只是没有达到鼻烟。它的StackOverflow叉更好,但是缺少许多我想要的功能。

I gave up on trying to use WMD. Instead, I used Markitup! As of the time of this posting, the current version of WMD is just not up to snuff. The StackOverflow fork of it is better, but is missing many features I want.

相反,我决定使用Markitup!它有一个Django可重用的应用程序。它也与现有的django.contrib.markup模板过滤器非常好地集成。

Instead, I decided to use Markitup! It has a Django reusable app. It also integrates very well with the existing django.contrib.markup template filters.

django-markitup

我还找到一个网站,显示如何使用它进行平板,而无需编辑管理模板。

I also found a site that shows how to use it for flatpages without having to edit the admin templates.

在django中扩展管理表单

这篇关于WMD在Django管理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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