我正在尝试将我的 CKEDITOR 版本从 4.4.1 升级到 4.5.1。为此,我正在上传我的build-config.js以使用最新的 ckeditor 版本获取与以前相同的插件。
问题是使用下载的CKEDITOR,每当我尝试使用它时,我都会收到错误CKEDITOR.tools.getindex is not a function。这个错误来自小部件插件。
在第 1951 行的 widget/plugin.js 文件中,您有:
var index = CKEDITOR.tools.getIndex( widgetsRepo._.upcasts, function( element ) {
这正是问题所在。任何想法?
非常感谢。