[pmwiki-users] initialize input textarea

Petko Yotov 5ko at free.fr
Thu Apr 5 09:03:36 CDT 2007


On Thursday 05 April 2007 16:36, SteP wrote:
> Petko Yotov wrote:
> > There is at least one workaround, see
> > http://pmwiki.org/wiki/Cookbook/Textarea . Feel free to test it.
> >
> > Petko
>
> Wow, it's exactly what I was looking for. I use a PTV to initialize the
> textarea within a fox form. Posting the fox form saves the new text into
> the same PTV.
>
> In my limited testing I found one issue, and added a noted to the recipe
> page: if you're entering markup in the text area, line breaks like \\
> should be entered as \\\\ because something -I suspect the input control-
> will turn each \\ into a \
>
> This is a problem because a user would need to repeatedly fix all line
> breaks each time before posting the form.

Not in my installations: both when I have the contents inside the page, and 
when I pre-fill it with $InputValues taken from a PTV, "\\" stays "\\", new 
line stays new line. I suspect that you have some code that uses 
stripslashes() while it should use stripmagic().

Petko




More information about the pmwiki-users mailing list