Skip to content

Instantly share code, notes, and snippets.

@BrianGilbert
Created June 30, 2014 01:48
Show Gist options
  • Save BrianGilbert/1f6b868c77dc9bf9c099 to your computer and use it in GitHub Desktop.
Save BrianGilbert/1f6b868c77dc9bf9c099 to your computer and use it in GitHub Desktop.
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