I'm using FCKEditor for a textarea-type input of a text field. I want the 
versatility of the editor but need to limit the length of the resulting input.

As a convenience to users I want to show how much space (characters) they have 
left and I'm using a javascript function that relies of onKeyDown to call the 
function. (The function is available on a public site.)

<cftextarea name="ShortTitleDescrip" richtext="true" height="200" width="600" 
maxlength="150" message="You are limited to 150 characters in the description." 
onKeyDown="textCounter(this,'remLen2',150);" 
onKeyUp="textCounter(this,'remLen2',150);">

The problem is, when the FCKEditor is called onKeyDown no longer fires. Any 
suggestions on a workaround?


Larry Stephens


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333125
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to