开发者

Django Markdown or WYSIWYG editor

开发者 https://www.devze.com 2023-03-04 19:17 出处:网络
I have user generated context that extends mult开发者_JAVA百科iple paragraphs.I\'d like to enable the user to create paragraphs, possibly change font-weight, but nothing too huge.

I have user generated context that extends mult开发者_JAVA百科iple paragraphs. I'd like to enable the user to create paragraphs, possibly change font-weight, but nothing too huge.

I've seen a tutorial which uses the Python-Markdown module. Would anyone recommend this or should I just go with a WYSIWYG plugin? I've seen plugins for the admin but have not yet seen it applied to a general Django template.

Thanks Brendan


I have used django tiny-mce with tinymce in my comment app and is working. Defining plugins for this WYSIWYG editor is easy and comes only to specifying name of plugin in settings.py and JS file.


MarkItUp! editor can help http://markitup.jaysalvat.com/ It have many rich features, includes django model class MarkupField(models.TextField), JS-settingynized editor's toolbar, etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号