Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I found this pluging http://www.n7studios.co.uk/2010/03/01/ckeditor-word-count-plugin/
I was wondering if someone knows where to put the HTML code for the CKEditor instance he refers to in the directions. Is there a way to create a button for this on the Drupal module. Thank you.
Comment | File | Size | Author |
---|---|---|---|
#11 | wordcount.zip | 1.08 KB | rwohleb |
Comments
Comment #1
mephir CreditAttribution: mephir commentedEverything for wordcount plugin should be placed in ckeditor.config.js. There are also toolbars, which should be edited. The HTML code should be manually added to theme, we don't provide any method to do it. You can also write small drupla module, which can do it.
If you have any lack of clarity about issue, feel free to reopen it.
Comment #2
CinemaSaville CreditAttribution: CinemaSaville commentedThanks, I'll try to get this working. If I need help I'll contact you.
Comment #3
nassimo3 CreditAttribution: nassimo3 commentedHi , did you got this working ?? if yes how did you proceed ??
Thanks
Comment #4
CinemaSaville CreditAttribution: CinemaSaville commentedNever did. Mephir offered to help, maybe he'll write the module.
Comment #5
mephir CreditAttribution: mephir commentedSorry, i have 26 birthday, i must get some free time, i don't want to spent a rest of my life behind the computer.
Comment #6
nassimo3 CreditAttribution: nassimo3 commentedso you couldn't do it with the desciption include in the page http://www.n7studios.co.uk/2010/03/01/ckeditor-word-count-plugin/ ?
@memphir I just wanted to know if it was possible to have this plugin working like described in the link.
Comment #7
CinemaSaville CreditAttribution: CinemaSaville commented@mephir Totally understand. Enjoy your life. Take your time. Plenty of time to be behind a computer screen. And Happy Birthday my fellow Aries.
Comment #8
mephir CreditAttribution: mephir commentedLet's start working at this.
Comment #9
wwalc CreditAttribution: wwalc commented@mephir - so... did you start working on it *already*?
Comment #10
dczepierga CreditAttribution: dczepierga commentedProbably he didn't start to work on it, so i think we can do this for release 1.3
Comment #11
rwohlebI am attaching a wordcount plugin I developed from scratch. It's not a button, but rather keeps track of the count in the bottom status bar of the editor.
It's currently set to try and update every 100 milliseconds on changes, but honestly this should be more like a second or two. The word count doesn't need to be updated that quickly as people type.
Comment #12
dczepierga CreditAttribution: dczepierga commentedOk i will check this attachment later. Thx for help.
Comment #13
j0nathan CreditAttribution: j0nathan commentedSubscribing.
Comment #14
paskainos CreditAttribution: paskainos commentedSubscribing
Comment #15
dczepierga CreditAttribution: dczepierga commentedI found a lot of bugs:
1) Not work in FF - probably in other browsers too
2) Counts words only in first line of text
3) Some tags count as word
4) Count whitespaces as new words
For now i don't test it more.... For me it's to buggy for now to commit it
Greetings
Comment #16
rwohleb@dczepierga, which are you referring to. The original issue, or my attachment in #11? I'm running it in production without issue. Maybe there is an issue with the version of ckeditor or jquery. What are you using?
Comment #17
dczepierga CreditAttribution: dczepierga commentedI'm reffering to attachment in #11, in original issue there was this same problems because i try this before.
I check that on the last DEV version of CKEditor module and CKEditor lib in version 3.5.3/3.6
Greetings
Comment #18
dczepierga CreditAttribution: dczepierga commentedThis plugin is added by default to CKEditor module, so it can be enabled in CKEditor profile.
Greetings