I am looking for direction on how to add a character counter to FCKEditor. The problem is that I need to insert javascript, specifically onKeyUP into the html that is generated. Here is and example of the html.
<textarea name="text" id="text" rows="10" cols="80" style="width: 100%; height: 200px" onKeyUp="javascript:countChars('counter_number')">text</textarea>
I don't know how to get the onKeyUp inserted into the output. I am currently using the php calls, for example:
$oFCKeditor = new FCKeditor("myfield") ;
$oFCKeditor->BasePath = '/includes/fckeditor/' ;
$oFCKeditor->ToolbarSet = "full";
$oFCKeditor->Value = "my value"
$oFCKeditor->Create() ;
Where can I either modify the php so that I can insert the counter or can someone give me some help with the Javascript API on what I do to insert the javascript I need?
Thanks.
<textarea name="text" id="text" rows="10" cols="80" style="width: 100%; height: 200px" onKeyUp="javascript:countChars('counter_number')">text</textarea>
I don't know how to get the onKeyUp inserted into the output. I am currently using the php calls, for example:
$oFCKeditor = new FCKeditor("myfield") ;
$oFCKeditor->BasePath = '/includes/fckeditor/' ;
$oFCKeditor->ToolbarSet = "full";
$oFCKeditor->Value = "my value"
$oFCKeditor->Create() ;
Where can I either modify the php so that I can insert the counter or can someone give me some help with the Javascript API on what I do to insert the javascript I need?
Thanks.