Using a FCKEditor plugin is probably going to be "best".

I wrote one, a long time ago, in a galaxy far far away, that was
pretty freaking fancy.

Can't remember what version it worked for tho, and things have changed
a lot since then.

You can also try using the custom hooks that FCKEditor comes with for
doing onKeyDown and whatnot.  Don't have any examples off hand, but
there were docs on how to do it last time I checked.

Gerald is right tho, the newer version (CKEditor) is freaking sweet.
Maybe switching to it is an option?  Eh.  Looks like FCK is working on
adding it to the editor itself (and an some info on how things like
HTML markup make it "interesting"):
http://dev.fckeditor.net/ticket/397

:den

-- 
Compared to what we ought to be, we are half awake.
William James

On Mon, Apr 26, 2010 at 12:27 PM, Stephens, Larry V wrote:
>
> 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:333127
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to