我刚刚安装了CKEditor 5.6.1,它在Django 2.2网站上运行良好。但是在管理面板中显示不正确。字段标签重叠文本区域。我已经附上了屏幕截图。
CKEDITOR_CONFIGS = {
'default': {
'toolbar': 'Custom',
...
'height': 360,
'width': '100%',
有人知道如何预防吗?
admin.py
from ckeditor_uploader.widgets import CKEditorUploadingWidget
class PostAdminForm(forms.ModelForm):
description = forms.CharField(widget=CKEditorUploadingWidget())
class Meta:
model = Post
fields = '__all__'
class PostAdmin(admin.ModelAdmin):
form = PostAdminForm