{"_id":"@bloomreach/hippo-ckeditor-wordcount-plugin","_rev":"84-daffa133a80a582aa5765889a164cd93","name":"@bloomreach/hippo-ckeditor-wordcount-plugin","dist-tags":{"latest":"1.16.1"},"versions":{"1.16.1":{"name":"@bloomreach/hippo-ckeditor-wordcount-plugin","version":"1.16.1","keywords":["CKEditor"],"author":{"name":"w8tcha"},"_id":"@bloomreach/hippo-ckeditor-wordcount-plugin@1.16.1","maintainers":[{"name":"ajbanck","email":"arent-jan.banck@bloomreach.com"},{"name":"mjmetter","email":"michael.metternich@bloomreach.com"},{"name":"dokmic","email":"m@dokol.in"},{"name":"pcentgraf-bloomreach","email":"peter.centgraf@bloomreach.com"},{"name":"joerideg","email":"joerideg@gmail.com"},{"name":"abogaart","email":"arthur.bogaart@bloomreach.com"},{"name":"mdenburger","email":"mdenburger@gmail.com"}],"homepage":"https://github.com/w8tcha/CKEditor-WordCount-Plugin#readme","bugs":{"url":"https://github.com/w8tcha/CKEditor-WordCount-Plugin/issues"},"dist":{"shasum":"a64082ad28732f3e2aa63adfe3e8bfe30db4c180","tarball":"https://registry.npmjs.org/@bloomreach/hippo-ckeditor-wordcount-plugin/-/hippo-ckeditor-wordcount-plugin-1.16.1.tgz","fileCount":32,"integrity":"sha512-qW8hLrCiRHKxncOYq6WK7/1kc0dXrZi6CsHgjLmC9D2TYc9fPhM+c3Sw+YRV3a17UkHcYveWw1iP2NG71Uvliw==","signatures":[{"sig":"MEUCIGGli85bFhpEyc3sVq5Q6prGz7bqkRo60yNTwIHJyL29AiEAvl+H8YcOtR2DDKCt96s8Jfk1qP/px4MQYDI+Bpqogxg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2BpeCRA9TVsSAnZWagAAkFwP/R77Jj6Mqo2cYAKyERVl\nSZWcPS8jAtNCu7XtMWsHrnEo+SF1Tb0MG/Pfh+04cXINWWC9ullbi++HQk+/\nA+U5j1dEipm8sGSo1+P3M5jlAxUAsURXlOVkGTWYhEQKClAg9+XtLk6Bdfy6\nNnBGI0JmzKjBEjZgkTgGGMgxA80Y+NjwJX4kJMdm62+Y83LWFY+iR51vpHow\nBCOXkoPZB6lmDEeyz3NPRmAE8/uRre6oTOzxo2fYjy9SmaHmic3xwUjvrmOj\nS29haLWOZ2nd4QzZfiXD6Is0GWJkCuBIp1W755pKB0Q4lqxZxVX3eelstB6d\nOUxvv9G5QLdAR5zHLYV/7/PjEoofuWqxD166DTLDvP/0aGk0FvYQcXzjJpY5\nNmkLCXLtU3RYskcw0FnRHqL3Thd1pMrs+zHW/9Lv87y7GFjLXr2YSbsDmGUe\nAvZlczcZf3wNiSgqjWP1TyaMO7ZFvpkKwhjkcX/A72Ze5KfLuEMgxEQ2Al1a\nY3A/FF2XuZQLtUNVd68eiSLIvApXkugmsFrx2Kz0XBYNY5QdHBMlLp0awiP0\nrjd3mDQEOelRMcw8/7XjYC7sCji4RHeGRvHiaggFPMwtBCQ9HNaNC48Qtbjh\nH0gwE9MLWx0DHOaOf0iRh3sFk1br7nQP5yU6RIOLDVyflQUYzb13gr8rmjiB\nfP2Y\r\n=6PpL\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"npm":"6","node":"8"},"gitHead":"fe40351143ffa34587c0db4214f9344eabe150d0","_npmUser":{"name":"dokmic","email":"m@dokol.in"},"repository":{"url":"git+https://github.com/w8tcha/CKEditor-WordCount-Plugin.git","type":"git"},"_npmVersion":"6.4.1","description":"CKEditor-WordCount-Plugin =========================","directories":{},"_nodeVersion":"10.10.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/hippo-ckeditor-wordcount-plugin_1.16.1_1553264254727_0.3880207586356801","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-03-22T14:17:34.553Z","modified":"2026-09-04T10:07:34.938Z","1.16.1":"2019-03-22T14:17:34.994Z"},"bugs":{"url":"https://github.com/w8tcha/CKEditor-WordCount-Plugin/issues"},"author":{"name":"w8tcha"},"homepage":"https://github.com/w8tcha/CKEditor-WordCount-Plugin#readme","keywords":["CKEditor"],"repository":{"url":"git+https://github.com/w8tcha/CKEditor-WordCount-Plugin.git","type":"git"},"description":"CKEditor-WordCount-Plugin =========================","maintainers":[{"email":"beetlerom@gmail.com","name":"beetlerom"},{"email":"joeri.degooijer@bloomreach.com","name":"joerideg"},{"email":"arthur.bogaart@bloomreach.com","name":"abogaart"},{"email":"rishabh.chhabda@bloomreach.com","name":"rishabh.chhabda"},{"email":"rameshkumar.arumugam@bloomreach.com","name":"rameshbr"},{"email":"peter.centgraf@bloomreach.com","name":"pcentgraf-bloomreach"},{"email":"georgevle93@gmail.com","name":"vlets"},{"email":"paul.edwards@bloomreach.com","name":"pauledwardsbloomreach"},{"email":"david@davidboyd.com","name":"davidboyd1"},{"email":"drq@nxfinc.com","name":"drq"},{"email":"nikola.trajkovski@bloomreach.com","name":"ntrajkovski"},{"email":"bcanvural@gmail.com","name":"bcanvural"},{"email":"charlie.chen@bloomreach.com","name":"lachire"},{"email":"giacomo.lamonaco@bloomreach.com","name":"glm-bloomreach"},{"email":"matteo.giusto@bloomreach.com","name":"mgiusto"},{"email":"bartosz.oudekerk@bloomreach.com","name":"boudekerk"},{"email":"aakash.anand@bloomreach.com","name":"aakash.anand"},{"email":"prateek.pandey@bloomreach.com","name":"prateek.pandey"},{"email":"jeroen.hoffman@bloomreach.com","name":"jeroenhoffman"},{"email":"vahid.mehrjouei@bloomreach.com","name":"vahid.mehrjouei"},{"email":"wenjun.li@bloomreach.com","name":"wenjun.li"},{"email":"shiva.dharavath@bloomreach.com","name":"shivanayak.dharavath2"}],"readme":"CKEditor-WordCount-Plugin\n=========================\n\nWordCount Plugin for CKEditor v4 (or above) that counts the words/characters an shows the word count and/or char count in the footer of the editor.\n\n![Screenshot]\n(http://www.watchersnet.de/Portals/0/screenshots/dnn/CKEditorWordCountPlugin.png)\n\n####Demo\n\nhttp://w8tcha.github.com/CKEditor-WordCount-Plugin/\n\nDISCLAIMER: This is a forked Version, i can not find the original Author anymore if anyone knows the original Author please contact me and i can include the Author in the Copyright Notices. \n\n####License\n\nLicensed under the terms of the MIT License.\n\n####Installation\n\n If building a new editor using the CKBuilder from http://ckeditor.com/, there is no need to follow numbers steps below. If adding the Word Count & Char Count plugin to an already established CKEditor, follow the numbered steps below.\n\n1.\tDownload the Word Count &  Char Count plugin from http://ckeditor.com/addon/wordcount or https://github.com/w8tcha/CKEditor-WordCount-Plugin. This will download a folder named **wordcount_*version*.zip** or **CKEditor-WordCount-Plugin-master.zip** to your Downloads folder.\n2.\tDownload the Notification plugin from http://ckeditor.com/addon/notification. This will download a folder named **notification_*version*.zip** to your Downloads folder.\n3.\tExtract the .zip folders for both the Word Count & Char Count and Notification plugin. After extraction, you should have a folder named **wordcount** and a folder named **notification**.\n4.\tMove the wordcount folder to /web/server/root/ckeditor/plugins/.  Move the notification folder to /web/server/root/ckeditor/plugins/.\n5.\tAdd the following line of text to the config.js file, which is located at /web/server/root/ckeditor/.\n\n```javascript\nconfig.extraPlugins = 'wordcount,notification'; \n```\n\nBelow is an example of what your config.js file might look like after adding config.extraPlugins = 'wordcount,notification';\n\n```javascript\nCKEDITOR.editorConfig = function( config ) {\n  config.extraPlugins = 'wordcount,notification';\n  config.toolbar [\n  et cetera . . .\n  ];\n};\n```\n\nThere now should be text in the bottom right-hand corner of your CKEditor which counts the number of Paragraphs and number of Words in your CKEditor.\n\n![plugin example](http://www.trojanbot.com/uploads/ckeditor_paragraph_words.png)\n\nTo modify the behavior of the Word Count & Char Count text at the bottom right-hand corner of your CKEditor, add the following text to your config.js file located at /web/server/root/ckeditor/config.js.\n\n````js\nconfig.wordcount = {\n\n    // Whether or not you want to show the Paragraphs Count\n    showParagraphs: true,\n\n    // Whether or not you want to show the Word Count\n    showWordCount: true,\n\n    // Whether or not you want to show the Char Count\n    showCharCount: false,\n\n    // Whether or not you want to count Spaces as Chars\n    countSpacesAsChars: false,\n\n    // Whether or not to include Html chars in the Char Count\n    countHTML: false,\n    \n    // Maximum allowed Word Count, -1 is default for unlimited\n    maxWordCount: -1,\n\n    // Maximum allowed Char Count, -1 is default for unlimited\n    maxCharCount: -1,\n\n    // How long to show the 'paste' warning, 0 is default for not auto-closing the notification\n    pasteWarningDuration: 0,\n    \n\n    // Add filter to add or remove element before counting (see CKEDITOR.htmlParser.filter), Default value : null (no filter)\n    filter: new CKEDITOR.htmlParser.filter({\n        elements: {\n            div: function( element ) {\n                if(element.attributes.class == 'mediaembed') {\n                    return false;\n                }\n            }\n        }\n    })\n};\n````\n\n**Note:** If you plan to change some of the JavaScript, you probably will not want to use the CKBuilder, because this will place the JavaScript of the Word Count & Char Count plugin in the ckeditor.js file located at /web/server/root/ckeditor/ckeditor.js. The JavaScript for the Word Count & Char Count plugin in the ckeditor.js file is different than the JavaScript used when manually adding the Word Count & Char Count plugin.  When manually adding the Word Count & Char Count plugin, the JavaScript will be in the plugin.js file located at \n\n","readmeFilename":"README.md"}