Re: Quickform textarea formatting
| From: | Dan Wilson | Date: | Thu, 13 Feb 2003 15:17:07 +0000 |
| Subject: | Re: Quickform textarea formatting | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-3743@lists.php.net to get a copy of this message | ||
I would much rather have the nl2br... that way, it won't push the surrounding
table out and will keep a consistent look with the other text.
In addition to the <pre>, I also was wondering about the nowrap tag... why is
that in there. I could understand it being on the label side, but not on the
values. I know I can strip this out in the _elementTemplate, but I don't see
the purpose in it at all. Why would anyone want that on the side where the
values are displayed... if they have a large text area, the user could skew
their table layout by typing a long paragraph without any hard returns.
I say we move it from the value td to the label td.
-Dan
Quoting Bertrand Mansion <bmansion@mamasam.com>:
> <dan@acucore.com> wrote :
>
> > I am using the latest version of Quickform and am not too thrilled about
> the
> > [pre] tags in the frozenHTML output of the textarea element.
> >
> > Is there anyway to remove those tags programmatically? I'd like to avoid
> > editing the classes to maintain upgradability.
>
> <PRE> tags are here to keep consistancy in layout between what the user
> submitted and the way it is displayed in frozen mode.
>
> The other solution might be to use nl2br() on the submitted data and display
> the text without the <PRE> tags. Would that be ok for you ?
>
> Bertrand Mansion
> Mamasam
>
>