django-ckeditor 格式不在 html post 中
django-ckeditor formatting not in html post
我有一个类似于上一个问题的问题:
除了我的设置似乎没问题,但仍然没有显示在 html 页面中。我错过了什么?
settings.py
INSTALLED_APPS = [
'ckeditor',
'ckeditor_uploader',
]
CKEDITOR_CONFIGS = {
'awesome_ckeditor': {
'toolbar': 'full',
},
}
CKEDITOR_IMAGE_BACKEND = "pillow"
并在 html 页面呈现编辑后的 post 我有:
post_detail.html
<div class="post-content">{{post.text|safe|linebreaksbr}}</div>
admin 端一切正常:
页面上还没有显示:
html 似乎已正确呈现,只是缺少要为 html 标签添加的 css 格式。我离开这个 post 以防有人检查此类问题时有用。
我有一个类似于上一个问题的问题:
除了我的设置似乎没问题,但仍然没有显示在 html 页面中。我错过了什么?
settings.py
INSTALLED_APPS = [
'ckeditor',
'ckeditor_uploader',
]
CKEDITOR_CONFIGS = {
'awesome_ckeditor': {
'toolbar': 'full',
},
}
CKEDITOR_IMAGE_BACKEND = "pillow"
并在 html 页面呈现编辑后的 post 我有:
post_detail.html
<div class="post-content">{{post.text|safe|linebreaksbr}}</div>
admin 端一切正常:
页面上还没有显示:
html 似乎已正确呈现,只是缺少要为 html 标签添加的 css 格式。我离开这个 post 以防有人检查此类问题时有用。