gpt4 book ai didi

Django CKEditor AllowedContent

转载 作者:行者123 更新时间:2023-12-05 01:04:56 27 4
gpt4 key购买 nike

有谁知道如何让 advancedContentFilter 在 django-ckeditor 配置设置中工作?我试图过滤粘贴在 p 标签中以删除样式属性。我在 settings.py 中使用了以下内容,但它似乎没有注册。

CKEDITOR_CONFIGS = {
'allowedContent':'p',
}

最佳答案

这对我有用

CKEDITOR_CONFIGS = {
'default': {
'removePlugins': 'stylesheetparser',
'allowedContent': True,
},
}

关于Django CKEditor AllowedContent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22147388/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com