Thanks for the feedback. Yeh I figured that I would be losing stuff like
the bulleted items. One of the good things is that it seems to at least be
keeping the numbered items. I had tried using the replace with chr(1) &
chr(13) trick but it didn't seem to give me any more formatting then
paragraphformat(). I did a little more research and although not 100% of
what I was looking for, but at least a good chunk, the <pre> tags allow me
to keep the text pretty much as I see it in my textfield when I paste the
text in there...
Thanks,
[EMAIL PROTECTED]
-----Original Message-----
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 08, 2000 10:03 AM
To: [EMAIL PROTECTED]
Subject: RE: Text Formatting via Cut and Paste
> I'm trying to do something on a form to where the user would cut and paste
> text formatted code (indents, bulleted items, etc..) from a Microsoft Word
> document into a multi-line text field. When cutting and pasting the
> information into the text field it actually shows up exactly how I want it
> to look (which is good). When I go and preview the information through a
> submit button, I lose all the formatting. I have tried using the
> paragraphformat() tag but that doesn't seem to do the trick for me.
>
> Any ideas? I seem to mainly be losing line breaks.
Textarea fields are plain text, which means that they would automatically
lose any formatting.
If you want it to handle the bullets, indents etc. properly, then you need
to buy an editor like ActiveEdit or eWebEditPro.
If you just want to handle the carriage returns, then output
Replace(myString,chr(13)&Chr(10),"<br>","All")
which will change all hard returns into <br>s
HTH
Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133
"Websites for the real world"
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.