Just use rereplace to replace chr(10) and chr(13) with "<BR>"
Russ Michaels Macromedia Certified ColdFusion Professional -- Satachi Internet Development t: 0870 7873610 f: 07092 212636 tech support: 0906 960 7800 www.satachi.com Join our ColdFusion developer community list send email to: [EMAIL PROTECTED] ------------------------------------------------------------------------ - FIGHT BACK AGAINST SPAM! Download Spam Inspector, the Award Winning Anti-Spam Filter http://mail.giantcompany.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 11:50 To: [EMAIL PROTECTED] Subject: [ cf-dev ] soEditor Got the SiteObjects soEditor (lite) on a form. This only works on IE on certain platforms. On other browser/platform combinations, it displays a textarea. Using Javascript to set the content of the form dynamically. No problems there. Got some coldfusion that is cleaning up the content that gets placed into the soEditor object / textarea. Basically I need to turn CRLF combinations (#Chr(13)##Chr(10)#) into something that both soEditor and the textarea will recognise as being line breaks. If I don't clean up the text at all, it displays nicely in the textarea, but loses the linebreaks on the soEditor. So it's a two part question: I: Is there some way I can turn crlf into something that will display linebreaks / paragraph breaks correctly in both a textarea and soEditor II: Is there any *server-side* way I can detect whether soEditor or a textarea will be displayed. I've already got a good way of working this out in Javascript, but not sure how it could be replicated in coldfusion. I'm not about to pass a url parameter, as the form's way too complicated to start doing that. I suppose a third option would be to just clean up the text in the Javascript... Duncan Cumming IT Manager http://www.alienationdesign.co.uk mailto:[EMAIL PROTECTED] Tel: 0141 575 9700 Fax: 0141 575 9600 Creative solutions in a technical world ---------------------------------------------------------------------- Get your domain names online from: http://www.alienationdomains.co.uk Reseller options available! ---------------------------------------------------------------------- ---------------------------------------------------------------------- -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
