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.

CommentFileSizeAuthor
#11 wordcount.zip1.08 KBrwohleb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mephir’s picture

Status: Active » Fixed

Everything 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.

CinemaSaville’s picture

Thanks, I'll try to get this working. If I need help I'll contact you.

nassimo3’s picture

Hi , did you got this working ?? if yes how did you proceed ??
Thanks

CinemaSaville’s picture

Never did. Mephir offered to help, maybe he'll write the module.

mephir’s picture

Sorry, i have 26 birthday, i must get some free time, i don't want to spent a rest of my life behind the computer.

nassimo3’s picture

so 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.

CinemaSaville’s picture

@mephir Totally understand. Enjoy your life. Take your time. Plenty of time to be behind a computer screen. And Happy Birthday my fellow Aries.

mephir’s picture

Status: Fixed » Needs work

Let's start working at this.

wwalc’s picture

Status: Needs work » Active

@mephir - so... did you start working on it *already*?

dczepierga’s picture

Status: Active » Postponed
Issue tags: +6.x-1.3

Probably he didn't start to work on it, so i think we can do this for release 1.3

rwohleb’s picture

Status: Postponed » Needs review
FileSize
1.08 KB

I 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.

dczepierga’s picture

Component: Documentation » Code

Ok i will check this attachment later. Thx for help.

j0nathan’s picture

Subscribing.

paskainos’s picture

Subscribing

dczepierga’s picture

Status: Needs review » Needs work

I 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

rwohleb’s picture

@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?

dczepierga’s picture

I'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

dczepierga’s picture

Status: Needs work » Closed (fixed)

This plugin is added by default to CKEditor module, so it can be enabled in CKEditor profile.

Greetings