我想删除"此CKEditor4.22.1版本不安全.请考虑升级到最新版本4.24.0-LTS."不会出现在我的Django管理员的RichTextUploadingfield中.目前使用Django CKEditor6.7.0m,所有设置仅在settings.py中.配置:

CKEDITOR_CONFIGS = {
"default": {
"skin": "moono",
"toolbar": "Custom",
"allowedContent": True,
"extraAllowedContent": "object\[id,name,width,height\];",
"extraPlugins": "iframe",
"iframe_attributes": {
"sandbox": "allow-scripts allow-same-origin allow-popups allow-presentation allow-forms",
"allowfullscreen": "",
"loading": "lazy",
"referrerpolicy": "no-referrer-when-downgrade",
},
"toolbar_Custom": \[
{
"name": "document",
"items": \[
"Source",
"-",
"Save",
"NewPage",
"Preview",
"Print",
"-",
"Templates",
\],
},
{
"name": "clipboard",
"items": \[
"Cut",
"Copy",
"Paste",
"PasteText",
"PasteFromWord",
"-",
"Undo",
"Redo",
\],
},
{"name": "editing", "items": \["Find", "Replace", "-", "SelectAll"\]},
{
"name": "forms",
"items": \[
"Form",
"Checkbox",
"Radio",
"TextField",
"Textarea",
"Select",
"Button",
"ImageButton",
"HiddenField",
\],
},
"/",
{
"name": "basicstyles",
"items": \[
"Bold",
"Italic",
"Underline",
"Strike",
"Subscript",
"Superscript",
"-",
"RemoveFormat",
\],
},
{
"name": "paragraph",
"items": \[
"NumberedList",
"BulletedList",
"-",
"Outdent",
"Indent",
"-",
"Blockquote",
"CreateDiv",
"-",
"JustifyLeft",
"JustifyCenter",
"JustifyRight",
"JustifyBlock",
"-",
"BidiLtr",
"BidiRtl",
"Language",
\],
},
{"name": "links", "items": \["Link", "Unlink", "Anchor"\]},
{
"name": "insert",
"items": \[
"Image",
"Flash",
"Table",
"HorizontalRule",
"Smiley",
"SpecialChar",
"PageBreak",
"Iframe",
"Embed",
\],
},
"/",
{
"name": "styles",
"items": \["Styles", "Format", "Font", "FontSize"\],
},
{"name": "colors", "items": \["TextColor", "BGColor"\]},
{"name": "tools", "items": \["Maximize", "ShowBlocks"\]},
{
"name": "about",
"items": \[
"About",
\],
},
\],
"language": "en",
}
}

try 在配置中添加"Ignore":TRUE,"updateCheck":FALSE,但没有效果."CKEDITOR_UPDATE_NOTIFICATION=FALSE"也不会给出任何结果.

推荐答案

显然,对编辑器版本的判断是一个新的配置选项,这里描述了类配置(CKEDITOR.CONFIG)|CKEditor4API文档2.

它是在CKEditor4.22.0版本中添加的;XWiki在此工单加载中升级到CKEditor4.22.1...4.

从我测试的内容和我对ckeditor配置的理解来看,可以通过添加以下内容来禁用判断本身:

Config.versionCheck=False;

在XWiki的CKEditor配置中,在管理器的高级部分中的编辑器配置:https://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor%20Integration/#HAdministrationSection 7.

这将禁用该警告,因为它将阻止编辑器判断其自己的版本,但不会以任何方式修复该编辑器的版本.

希望这能帮上忙, 安卡

https://forum.xwiki.org/t/cke-editor-warning-4-22-1-version-not-secure/14020/4

Python相关问答推荐

连接两个具有不同标题的收件箱

为什么我的Python代码在if-else声明中的行之前执行if-else声明中的行?

Python中的嵌套Ruby哈希

Python虚拟环境的轻量级使用

为什么以这种方式调用pd.ExcelWriter会创建无效的文件格式或扩展名?

优化器的运行顺序影响PyTorch中的预测

Python+线程\TrocessPoolExecutor

改进大型数据集的框架性能

当我try 在django中更新模型时,模型表单数据不可见

计算天数

判断solve_ivp中的事件

如何使用使用来自其他列的值的公式更新一个rabrame列?

在matplotlib中使用不同大小的标记顶部添加批注

Python 3试图访问在线程调用中实例化的类的对象

python的文件. truncate()意外地没有截断'

我可以不带视频系统的pygame,只用于游戏手柄输入吗?''

为什么Visual Studio Code说我的代码在使用Pandas concat函数后无法访问?

启动线程时,Python键盘模块冻结/不工作

极点用特定值替换前n行

多个布尔条件的`jax.lax.cond`等效项