settings.py中加入:
TINYMCE_DEFAULT_CONFIG = {
'theme': 'advanced',
'width': 600,
'height': 400,
'relative_urls': False,
'remove_script_host': False
}
本文介绍如何在settings.py文件中配置TinyMCE编辑器的基本设置,包括主题样式、宽度、高度等参数,确保编辑器正常运行。
settings.py中加入:
TINYMCE_DEFAULT_CONFIG = {
'theme': 'advanced',
'width': 600,
'height': 400,
'relative_urls': False,
'remove_script_host': False
}
1415
5774
5632

被折叠的 条评论
为什么被折叠?