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
--
GeorgeAgnelli - 08 Nov 2006
Answer
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