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