Django - ckeditor 不起作用 - 自定义



我正在尝试像这样在 Django 设置中自定义我的 ckeditor。但是保存设置后,我会收到500错误。否则 ckeditor 正在工作,但如果我尝试自定义它,它会失败。

CKEDITOR_CONFIGS = {
'awesome_ckeditor': {
'toolbar': 'Basic',
},
}

有人可以帮我吗,如何在不重写基本配置的情况下制作自己的"配置",请?

in your prJ at settings.py

INSTALLED_APPS = [ 'ckeditor',]

CKEDITOR_CONFIGS = {
'default': {
'toolbar': 'Custom',
'width': '500px',
'height': '10%',
'toolbar_Custom': [
['Bold', 'Italic', 'Underline'],
['NumberedList', 'BulletedList'],
],
}
}

CKEDITOR_BASEPATH = "/static/ckeditor/ckeditor/"

最新更新