tinyMCE Word Count
[Edit July 13, 2008]: If you are using a version that is older than 3.x then replacevar strip=stripcode(tinyMCE.activeEditor.getContent())
with this:
var strip=stripcode(tinyMCE.getContent(tiny_ID));
[/Edit]
This script will add a word count to your tinyMCE text editor.
First, put this in your header, or if that isn't possible for whatever reason, put it above your tinyMCE code, while editing the part the variable that is your tinyMCE content ID.
<script language="javascript" type="text/javascript"> function countWords() if(strip=="") </script> |
Next what you are going to do is after the tinyMCE code, you are going to put this code:
| <input type="button" value="Calculate Words" onClick="countWords()" /><input type="text" name="wordcount" size="20" /> |