在 Django 中删除 stylesheetparser 插件后,CKeditor 仍在解析 CSS 类

CKeditor is still parsing CSS Clasess after removing stylesheetparser plugin in Django

我试图在我的 Django 管理界面中安装 Ckeditor。我想用 html 代码写自己。但允许其他用户使用 Ckeditor 编写 html 代码。如果我从管理员那里打开 post。 Ckeditor 删除所有标签的 类。根据可用的 Ckeditor 文档:

https://django-ckeditor.readthedocs.io/en/latest/#installation

我应该通过配置 Ckeditor 来删除插件 stylesheetparser。我这样做了,但 Ckeditor 仍然从标签中删除了 类。

如果您将添加到您的 CKEditor 配置中

config.extraAllowedContent = '*(*)';

它将允许所有标签 类。

您可以在此处阅读更多内容

https://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_advanced_content_filter