gabriel
|
| Posted: 09/17/2005, 11:16 PM |
|
Im bulding a site that pull it-s data from a MySQL database, the problem is that it show-s the data in plain text. I tried "converting" the field to HTML but then the line breaks desappear.
My question is, where can I find a component like the one where we write our post in this forum, where I can modify the font size, color, apparence, etc.
|
|
|
 |
Damian Hupfeld
|
| Posted: 09/18/2005, 5:30 AM |
|
here are 2 options that I use -
1. is to use fckeditor - its free and very functional and very easy to
integrate into CCS
2. in your display page add some custom code in before show to do a
str_replace and replace \r\n with <br> - this only modifies what is
displayed and not what is stored in the db
regards
Damian Hupfeld http://www.nexthost.com.au/services.php
"gabriel" <gabriel@forum.codecharge> wrote in message
news:5432d063f5a12b@news.codecharge.com...
> Im bulding a site that pull it-s data from a MySQL database, the problem
> is that
> it show-s the data in plain text. I tried "converting" the field to HTML
> but
> then the line breaks desappear.
>
> My question is, where can I find a component like the one where we write
> our
> post in this forum, where I can modify the font size, color, apparence,
> etc.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
gabriel
|
| Posted: 09/19/2005, 1:48 PM |
|
Thanks, but Im new in php, thats why Im using CCS, can you please explain the code I should use to implement the step 2 Quote :in your display page add some custom code in before show to do a
|
|
|
 |
mrachow
Posts: 509
|
| Posted: 09/20/2005, 12:16 AM |
|
In before show event
$Detail->Desc->SetValue(nl2br($Detail->Desc->GetValue()));
for example. You have to substitue $Detail->Desc by your form and control name respectively.
For the label set property Content (type) to HTML
_________________
Best regards,
Michael |
 |
 |
|