Tags:
create new tag
, view all tags

Question

Can anyone tell me why when TML is entered into a TWikiForm textarea field, saved and then subsequently edited, some of the TML comes back as HTML?

For example, entering the following into a new topic TWikiForm:

---+++Why?
---+++How?

Then saving, and going in again to edit, the content appears as:

---+++Why?
<h3><a name="How"></a> How

Note the missing closing h3 tag.

Fixing the closing tag and saving again gives:

---+++Why?
<h3><a name="How"></a><a name="_How"></a> <a name="How"></a> How </h3>

Can anyone shed any light on this?

Update

It seems that anything beyond the first line is returned to the form as HTML not TML. Is there some problem with textarea form types and TML in TWiki?

Is it worth rolling back to an older version of TWiki (pre V4) where this might not be a problem?

This is a big problem for us and something we cant solve.

-- DanDixon - 29 Nov 2006

Thanks.

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins:  
Server OS: Debian GNU/Linux
Web server: Apache/2.0.54 mod_perl/2.0.2
Perl version: Perl/v5.8.8
Client OS:  
Web Browser:  
Categories: Forms

-- GeorgeAgnelli - 08 Nov 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Adding TML to textareas is quite common, so I am surprised.

I tried to reproduce this, but failed - with "plain" edit, with WysiwygPlugin, with adding a %TOC% in the form field (which would be my only explanation for the <a name...>). Do you have any Plugins activated? Or could you attach your form definition?

-- HaraldJoerg - 29 Nov 2006

I can't reproduce this, ChangeRequest2. Possibly a plugin interference as Harald suggests. To find out, try diabling them one by one. If needed post a report in the relevant plugin-dev topic, or file a bug report if this is in the core.

-- PeterThoeny - 29 Dec 2006

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-12-29 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.