CKEditor更新通知

问题描述 投票:0回答:1

想要删除“此 CKEditor 4.22.1 版本不安全。请考虑升级到最新版本 4.24.0-lts。”避免出现在我的 Django 管理员的 RichTextUploadingField 中。目前使用 Django CKEditor 6.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",
}
}

尝试添加 "ignoreUpdates": True,"updateCheck": False, 到配置中,但没有效果。 “CKEDITOR_UPDATE_NOTIFICATION = False”也没有给出任何信息。

python django ckeditor
1个回答
0
投票

显然编辑器版本的检查是一个新的配置选项,此处描述 Class Config (CKEDITOR.config) | CKEditor 4 API 文档 2 .

CKEditor 4.22.0版本添加; XWiki 在此票中升级至 CKEditor 4.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

© www.soinside.com 2019 - 2024. All rights reserved.