I'm looking to use the wordcount plugin for the CKeditor in WYGWAM. Wordcount states it is compatible with version 4 of CKeditor, which is in v3 of WYGWAM. So my question is - Is it possible to get wordcount working inside of WYGWAM 3? Can anyone confirm before I buy a licence?
2 Answers
I can can confirm this works. Here are the steps I took.
- Copy old WYGWAM folders out of themes/third_party & expressionengine/third_party to somewhere safe
- Copy New folders in respective places.
- In admin Go to Addons/Modules and click Run Module Updates (top right)
- In same screen click WYGWAM, and clone and existing config (the one you use)
- Click new cloned version, under "Advanced Settings" select extraPlugins from the dropdown and type "wordcount" in the text box (sans quotes).
- At this point my WYGWAM field was broken because it was trying to init old ckeditor plugins, namely channel images, you may or may not get this problem depending on your setup but if you do, copy missing plugins (console.log shows whats missing) from the ckeditor/plugins folder backed up in step one, into the new folder (these plugins are in the theme area).
That's it, I wanted to have a word and character count so I edited themes/third_party/wygwam/lib/ckeditor/plugins/wordcount/plugin.js and changed the defaultConfig var accordingly.
While I haven't used that particular extension (Wordcount) with Wygam, I have had success using a few others, so it should theoretically work. If it doesn't, Devot-ee has a 30 day return policy.