NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item6005: EditTable Changes "label"-formatted cell in unexpected way

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Extension EditTablePlugin  
A co-worker brought this to my attention.

Start with a table like this

%EDITTABLE{format="|label|textarea,3x30|"}%
| | Games | Finance | Sports | News |
| %GREEN% Migration sequence # %ENDCOLOR% <br /> _not required at this time_ | | | | | 
| # of space ids  | | | | |

Save it:

screenshot1.jpg

Click the Edit button:

screenshot2.jpg

Click Save:

screenshot3.jpg

Look at what happened to the GREEN cell content.

On the back side (Raw view) it looks like this

%EDITTABLE{format="|label|textarea,3x30|"}%
| | Games | Finance | Sports | News |
| %E</em>T_P_NOPGREEN% Migration sequence # %ENDCOLOR% <br /> _not required at this time_ | | | | |
| # of space ids | | | | |
<nop>

Workaround

I tried
  • bolding the header cells with =*...*.
  • ensuring that the upper left cell has something in it
to no avail

Then I tried replacing the TWikiML with HTML

| %GREEN% Migration sequence # %ENDCOLOR% <br /> <i>not required at this time</i> | | | | | 

So, there's a workaround. But this needs to be found and fixed.

-- TWiki:Main/VickiBrown - 20 Sep 2008

In any case comething is wrong with the plugin: after editing the url returns to viewauth, and the EDITTABLE tag is no longer parsed: Item6008.

The problem on your bug is that the italic text is somehow rendered and the variable placeholder gets mangled.

I found that with a label cell:
  1. TML is stripped too agressively
  2. no space is written between TML and the hidden input field

Fixed this.

-- TWiki:Main.ArthurClemens - 21 Sep 2008

ItemTemplate edit

Summary EditTable Changes "label"-formatted cell in unexpected way
ReportedBy TWiki:Main.VickiBrown
Codebase
SVN Range TWiki-5.0.0, Fri, 12 Sep 2008, build 17509
AppliesTo Extension
Component EditTablePlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins TWikirev:17530 TWikirev:17531
TargetRelease patch
ReleasedIn
Topic revision: r6 - 08 Jan 2009, KwangErnLiew
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads