2016-05-07 8 views
0

なぜこれは機能しませんか? MY SITE ONCDN ckeditorでwordcountを使用するには?

<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> 

私はでホストされている語数プラグインを持っている(推測を取る)

mydomain.com/assets/ckeditor/plugins/wordcount/plugin.js 

私が取得エラー:

http://cdn.ckeditor.com/404.shtml/ネットをGETは:: 不明なエラーをERR_TOO_MANY_REDIRECTS:[CKEditorバージョン.resourceManager.load] "http://cdn.ckeditor.com/4.5.8/standard/plugins/notification/plugin.js?t=G2VC"にリソース名 "notification"が見つかりませんでした

答えて

1

ドキュメントによると"標準"プリセットに他のプラグインが含まれていない場合、残りのプラグインが存在するようにパスを "standard-all"に切り替える必要があります。

私にとっては両方の状況で読み込まれたファイルが同じであるが、そのファイルが同じであれば "standard-all"よりも "standard"を使う利点がない他のプラグインを使用しようとすると失敗します。

関連する問題