Randy G wrote:

>Recently, I had to add a field which is an input field derived from a text 
>document that is copied and pasted into a form.  Once the info is pasted and 
>submitted to the database it loses all carriage returns and formatting.  Is 
>there any certain method to handling carriage returns, breaks, linespacing, 
>special characters?  I used #paragraphformat("#Form.Fieldname#")# and it did 
>resolve some of the issue, but not all.
>  
>
You probably want to look at implementing a wysiwyg or inline editor.  
Most of these will convert special characters in pasted text into html. 

Editors you might want to check out are :
    FCKEditor http://www.fckeditor.net/
    TinyMCE http://tinymce.moxiecode.com/
and HTML Area 3 http://www.dynarch.com/projects/htmlarea/

I use HTML Area 3, it was easy enough to implement, but both FCKEditor 
and TinyMCE seem to be getting rave reviews.

There are others eg soEditor and ActivEdit, but its all down to what you 
need functionally and what you want to/can pay for the product.

Also, if you've got users pasting in text from the likes of Microsoft 
Word, then you probably also need to take a look at a tag by a mate of 
mine, CF_CleanMSText 
(http://www.tazmedia.co.uk/software/tags/try_CleanMSText.cfm)  
Basically, it sorts out a lot of the weird and wonderful stuff that Word 
will insert into text you copy from one of its documents.

Hope this helps.

Regards

Stephen


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:849
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to