【发布时间】:2013-03-30 04:03:18
【问题描述】:
我的项目中有一个现有的 CK 编辑器文件夹。我怎样才能知道它的版本?有记录吗?
【问题讨论】:
标签: ckeditor
我的项目中有一个现有的 CK 编辑器文件夹。我怎样才能知道它的版本?有记录吗?
【问题讨论】:
标签: ckeditor
在最新的 CKEditors 中,默认面板“?”中有一个按钮。单击它,您将看到版本号。否则,如果按钮不存在,您需要检查源文件。一开始他们肯定应该包含作者数据和版本号。
【讨论】:
CKEDITOR.version。
只需在 config.js 文件中发出如下警告,它会给出值
alert(CKEDITOR.version);
或者直接在ckeditor_php4.php文件中查看,例如:
var $version = '3.6.3';
工作演示:
alert(CKEDITOR.version);
console.log("CKEDITOR.version ==",CKEDITOR.version);
<head>
<meta charset="utf-8">
<title>CKEditor</title>
<script src="https://cdn.ckeditor.com/4.11.4/standard/ckeditor.js"></script>
</head>
<body>
<textarea id="editor1"></textarea>
<script>
CKEDITOR.replace( 'editor1' );
</script>
</body>
【讨论】:
"version": "4.9.2",
我检查了 3.6 版,版本信息位于 f.e.在:
/ckeditor/CHANGES.html
CKEditor Changelog
CKEditor 3.6.6.1
4.X 使用降价文件:
/ckeditor/CHANGES.md
CKEditor 4 Changelog
====================
## CKEditor 4.4.1
【讨论】:
查看ckeditor/ckeditor.js 文件的内部。在文件顶部,您可以找到版本。
【讨论】:
CKEDITOR.version
在控制台中运行它应该会告诉你版本。
至于文档,你可以在这个 URL 中找到它:
https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR.html#property-version
【讨论】:
CKEDITOR.version 将给出当前版本的 CKEDITOR
alert(CKEDITOR.version);
console.log("CKEDITOR.version ==",CKEDITOR.version);
<head>
<meta charset="utf-8">
<title>CKEditor</title>
<script src="https://cdn.ckeditor.com/4.11.4/standard/ckeditor.js"></script>
</head>
<body>
<textarea id="editor1"></textarea>
<script>
CKEDITOR.replace( 'editor1' );
</script>
</body>
【讨论】: