[pmwiki-users] initialize input textarea
The Editor
editor at fast.st
Thu Apr 5 15:40:23 CDT 2007
On 4/5/07, Petko Yotov <5ko at free.fr> wrote:
> On Thursday 05 April 2007 16:54, Hans wrote:
> > Thursday, April 5, 2007, 3:36:19 PM, SteP wrote:
> > > I use a PTV to initialize the
> > > textarea within a fox form. Posting the fox form saves the new text into
> > > the same PTV.
> >
> > How does this work? Can you post multi-line text from a textarea into
> > a PTV? I thought you can only use single lines for PTVs.
> >
>
> The form (:pagetextvar:some value:) can be multiline as of lately. It is
> slightly more compicated to change than for the other types of PTV:
>
> $page['text'] = str_replace("(:$myPTV:$oldPTVvalue:)",
> "(:$myPTV:$newPTVvalue:)", $page['text']);
>
> Make sure $newPTVvalue contains no ":)".
>
> Petko
You can always escape the :) if you want. ZAP has a keep function
which fixes the things escaped out to get the results back out you put
in. It's not very sophisticated now--as I'm using LWS (which makes
things quite a bit easier!) but more could be done...
Cheers,
Dan
More information about the pmwiki-users
mailing list