django安装tinymce

1. pip install django-tinymce

2. 运行:python manage.py collectstatic

3. 编辑 settings.py

4. TINYMCE_JS_URL  = "/static/tiny_mce/tiny_mce.js"
    TINYMCE_JS_ROOT = "/static/tiny_mce/"
    TINYMCE_DEFAULT_CONFIG = {
        'theme': "advanced",
        'plugins': "table,spellchecker,paste,searchreplace",
        'cleanup_on_startup': True,
        'custom_undo_redo_levels': 10,
     }
    TINYMCE_SPELLCHECKER = True
    TINYMCE_COMPRESSOR = True

 

--------------------- 本文来自 yuanchao99 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/yuanchao99/article/details/47424483?utm_source=copy

posted @ 2018-10-09 11:41  梁颖666  阅读(808)  评论(0编辑  收藏  举报