将 css 样式添加到 django ckeditor
Add css style to django ckeditor
我正在使用 django ckeditor
我可以添加和编辑 HTML 标签,但不能添加 CSS 样式
有没有办法给内容添加CSS样式?
您可以将 'allowedContent': True
添加到您的 CKEDITOR_CONFIGS
,在 settings.py
文件中:
CKEDITOR_CONFIGS = {
'default': {
# ... your default config...
'allowedContent': True
}
}
您可以在文档中查看完整的配置示例:https://django-ckeditor.readthedocs.io/en/latest/#example-ckeditor-configuration
我正在使用 django ckeditor
我可以添加和编辑 HTML 标签,但不能添加 CSS 样式
有没有办法给内容添加CSS样式?
您可以将 'allowedContent': True
添加到您的 CKEDITOR_CONFIGS
,在 settings.py
文件中:
CKEDITOR_CONFIGS = {
'default': {
# ... your default config...
'allowedContent': True
}
}
您可以在文档中查看完整的配置示例:https://django-ckeditor.readthedocs.io/en/latest/#example-ckeditor-configuration