为什么这不起作用?
<script src="//cdn.ckeditor.com/4.5.8/standard/ckeditor.js"></script>
<script>
CKEDITOR.plugins.addExternal('wordcount', '/assets/ckeditor/plugins/wordcount/', 'plugin.js');
CKEDITOR.replace('body', {
extraPlugins: 'wordcount',
customConfig: '/assets/js/ckeditor/config.js'
});
</script>
在我的网站上我有wordcount插件托管(猜猜)
mydomain.com/assets/ckeditor/plugins/wordcount/plugin.js
我得到的错误:
获取http://cdn.ckeditor.com/404.shtml/ net :: ERR_TOO_MANY_REDIRECTS 未捕获错误:[CKEDITOR.resourceManager.load]在“http://cdn.ckeditor.com/4.5.8/standard/plugins/notification/plugin.js?t=G2VC”找不到资源名称“通知”
答案 0 :(得分:1)
根据他们在https://cdn.ckeditor.com/&#34;标准&#34;的文件预设不包含任何其他插件,您必须将路径切换为&#34; standard-all&#34;所以插件的其余部分都存在。
对我而言,这是一个错误,因为我没有看到任何使用优势&#34;标准&#34; over&#34;标准全部&#34;如果在两种情况下加载的文件都相同,但缺点是如果你尝试使用任何其他插件它将会失败。