CKEditor の wordcouter プラグインを使用しようとしています。私はこれに従っていましたが、うまくいかないようです。少し調べてみたところ、多数の異なるconfig.js
ファイルと多数のplugin
ディレクトリがあることがわかりました。どちらを使用すればよいですか?
app/assets/ckeditor/plugins/
app/assets/ckeditor/_source/plugins/
app/assets/javascripts/ckeditor/plugins/
app/assets/javascripts/ckeditor/_source/plugins/
app/assets/javascripts/ckeditor/_source/core/plugins.js
app/assets/ckeditor/_source/core/plugins.js
wordcount を解凍するとwordcount_1.05
、 という名前のディレクトリが作成されます。この名前を単にwordcount
?
config.js
ファイルに次のように入力しています。
config.extraPlugins = 'wordcount';
config.wordcount = {
// Whether or not you want to show the Word Count
showWordCount: true,
// Whether or not you want to show the Char Count
showCharCount: false
};
しかし、これはまったく何もしていないようです。少し変更すると(これは私の app/assets/javascripts/ckeditor/config.js ファイルでのみ機能します)、次のようになります。
CKEDITOR.config
その後、テキスト ボックスがまったく表示されなくなります。したがって、これは修正する正しいファイルだと思います。
助けてくれてありがとう!