How can I read the number of words entered in a FCKeditor textfield. I would like to validate this before submitting a form. Say for example impose a limit of 300 words in a text field.
Thanks for the link but it's not quite i'm looking for. I'm looking for a javascript or plugin that stops a user entering more than 300 words for example. I have no clue on how to implement this and would very much appreciate someones help over this.
The 300 word limit is tough, as it's not a real charachter limit. You can try counting spaces, but that's hit or miss-ish.
You will need someone who knows how to either modify the char-counting plugin to halt entry at some certain number or assign a onkeydown event handler and have it check.
All this is probably greek. If I get the time I'll write one, as there have been requests before...
RE: Counting the number of words
There is a beautiful plugin in the plugins section that will show html chars AND "normal" chars! Very nice.
Plugins are here
https://sourceforge.net/tracker/?atid=7 ... unc=browse
or here (shorter
http://tinyurl.com/7h5bz
Have fun!
RE: Counting the number of words
Thanks for the link but it's not quite i'm looking for. I'm looking for a javascript or plugin that stops a user entering more than 300 words for example. I have no clue on how to implement this and would very much appreciate someones help over this.
RE: Counting the number of words
You will need someone who knows how to either modify the char-counting plugin to halt entry at some certain number or assign a onkeydown event handler and have it check.
All this is probably greek. If I get the time I'll write one, as there have been requests before...
RE: Counting the number of words
That would be awesome if you could write it!!! I've tried looking at the structure of a plugin but I am not advanced enough to do it.