[Zope-dev] DTML Document textarea edit

Dirk Datzert Dirk.Datzert@rasselstein-hoesch.de
Mon, 28 Jan 2002 15:40:54 +0100


Hi!

I want to suggest a modification for the DTML Document/Method dtml-file
documentEdit.dtml

On default the textarea will be displayd with wrap="off" . If I imported
XML-Files without line breaks it is difficult to edit the files via
DTML-Webfrontend. A property wrapmode could solve this:

documentEdit.dtml:

 <textarea name="data:text" wrap="<dtml-if wrapmode><dtml-var
wrapmode><dtml-else>
off</dtml-if>" style="width: 100%;"<dtml-if
   dtpref_cols> cols="<dtml-var dtpref_cols>"<dtml-else
   > cols="50"</dtml-if><dtml-if dtpref_rows> rows="<dtml-var
   dtpref_rows>"<dtml-else> rows="20"</dtml-if>><dtml-var
   __str__></textarea>


Regards,
Dirk