Created
June 30, 2014 01:48
-
-
Save BrianGilbert/1f6b868c77dc9bf9c099 to your computer and use it in GitHub Desktop.
Set charcount to true https://github.com/w8tcha/CKEditor-WordCount-Plugin.git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wordcount/plugin.js b/wordcount/plugin.js | |
index 4fa20d6..2177247 100644 | |
--- a/wordcount/plugin.js | |
+++ b/wordcount/plugin.js | |
@@ -21,7 +21,7 @@ CKEDITOR.plugins.add('wordcount', { | |
// Default Config | |
var defaultConfig = { | |
showWordCount: true, | |
- showCharCount: false, | |
+ showCharCount: true, | |
countSpacesAsChars: false, | |
//charLimit: 'unlimited', | |
//wordLimit: 'unlimited', | |
@@ -180,20 +180,20 @@ CKEDITOR.plugins.add('wordcount', { | |
if (!notify) { | |
//counterElement(editorInstance).className = "cke_wordcount cke_wordcountLimitReached"; | |
- | |
+ | |
editorInstance.fire('limitReached', {}, editor); | |
} | |
- | |
+ | |
// lock editor | |
editorInstance.config.Locked = 1; | |
} | |
function limitRestored(editorInstance) { | |
- | |
+ | |
limitRestoredNotified = true; | |
limitReachedNotified = false; | |
editorInstance.config.Locked = 0; | |
- | |
+ | |
counterElement(editorInstance).className = "cke_wordcount"; | |
}*/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment