[pmwiki-users] textarea form extensions and linebreak

The Editor editor at fast.st
Thu Jun 14 17:38:35 CDT 2007


On 6/14/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Thu, Jun 14, 2007 at 11:02:47PM +0200, noskule wrote:
> > hi list
> > I read that pmwiki now supports default values in textarea. So previous
> > extensions are not needed anymore. I checked this out with zap. The
> > problem seams that pmwiki don't support linebreaks. This would mean that
> > I could'nt use it to edit existing comments that allow wikimarkup ore
> > use a {$:var}.
>
> You can use a var with:
>
>   (:input default source=SomePage :)
>
> and then in the form:
>
>   (:input textarea $:var:)
>
> For multiline comments specified in the page text itself -- yes,
> there's still some work that needs to be done there.


One option I've been using is two options for prefilling the value:

(:input textarea source=Some.Page:)
or
(:input textarea data=Some.Page:Var:)

This first fills the source with the whole page, the second the appropriate ptv.

Cheers,
Dan



More information about the pmwiki-users mailing list