marko_one
11-10-2003, 04:21 AM
Hi All,
I have a richtextbox element which I am using in my web site. I use this RTB to send emails to people through the site. The problem I am having is if I have a really long line of text say more than 80 characters then I need to be able to wrap it (I imagine with a <br>).
The problem I see in this is, what if I have underlined italic bold unordered list text?
so for example :
< ul >
< li >< strong >< i >< u >< font color='blue' >line 1 text here adding text to pad out AND more text to pad out etc etc</font>< /u >< /i >< /li >
< /ul >
The inner text of this here is given as :
"line 1 text here adding text to pad out AND more text to pad out etc etc"
This is 72 characters, and so should not wrap, but if you look at the html text, this exceeds the 80 character limit and so would insert a line break just after AND which of course is not required.
Obviously this is only a simple example and there are many ways that text can be added throught the RTB, for example different colour text for each character of a word or whatever effect pleases the user...
Are there any methods I can Use to insert line breaks in text that is at a certain number of characters?
Thanks
Marko.
I have a richtextbox element which I am using in my web site. I use this RTB to send emails to people through the site. The problem I am having is if I have a really long line of text say more than 80 characters then I need to be able to wrap it (I imagine with a <br>).
The problem I see in this is, what if I have underlined italic bold unordered list text?
so for example :
< ul >
< li >< strong >< i >< u >< font color='blue' >line 1 text here adding text to pad out AND more text to pad out etc etc</font>< /u >< /i >< /li >
< /ul >
The inner text of this here is given as :
"line 1 text here adding text to pad out AND more text to pad out etc etc"
This is 72 characters, and so should not wrap, but if you look at the html text, this exceeds the 80 character limit and so would insert a line break just after AND which of course is not required.
Obviously this is only a simple example and there are many ways that text can be added throught the RTB, for example different colour text for each character of a word or whatever effect pleases the user...
Are there any methods I can Use to insert line breaks in text that is at a certain number of characters?
Thanks
Marko.