RE: Best way to insert text as html, without a text editor

2006-10-20 Thread Bobby Hartsfield
Store it in the database just as it was typed. Don’t format it. When you output it, use... #replace(var, '#chr(13)##chr(10)#', 'br /', 'all')# -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 7:42 AM To: CF-Talk Subject: Best way to

RE: Best way to insert text as html, without a text editor

2006-10-20 Thread Dan G. Switzer, II
Will, What's the simplest way to maintain simple formatted text in a db, without using tinyMCE, FCKeditor, or typing html into the textarea? When I say simple, I mean I just want to show line breaks, carriage returns, etc. Not worried about boldness, tables, etc. I just tried using

Re: Best way to insert text as html, without a text editor

2006-10-20 Thread Will Tomlinson
Store it in the database just as it was typed. Don?t format it. When you output it, use... #replace(var, '#chr(13)##chr(10)#', 'br /', 'all')# Thangya dude me ~| Introducing the Fusion Authority Quarterly Update. 80 pages of

Re: Best way to insert text as html, without a text editor

2006-10-20 Thread Will Tomlinson
Thanks dan! Checkin it out. Will ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year.

RE: Best way to insert text as html, without a text editor

2006-10-20 Thread Andrew Tyrone
What's the simplest way to maintain simple formatted text in a db, without using tinyMCE, FCKeditor, or typing html into the textarea? When I say simple, I mean I just want to show line breaks, carriage returns, etc. Not worried about boldness, tables, etc. I just tried using

RE: Best way to insert text as html, without a text editor

2006-10-20 Thread Bobby Hartsfield
I'm in total agreement that you COULD do that but I'd recommend not. It's been my experience that putting the data into the database in the same exact format that it was entered by the user and formatting it only for display purposes (that don’t affect the data directly) is your best bet to avoid

RE: Best way to insert text as html, without a text editor

2006-10-20 Thread Andrew Tyrone
You could format it with a SELECT statement though if that's what Andy meant? That would not affect the data but format it for display. Yep, that is what I meant. Sometimes I find it easier to just send it back formatted in the correct way, but I'll always store it the way it was entered by