You are here: Foswiki>Tasks Web>Item6005 (08 Jan 2009, KwangErnLiew)Edit Attach

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

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: patch
Applies To: Extension
Component: EditTablePlugin
Branches:
Reported By: TWiki:Main.VickiBrown
Waiting For:
Last Change By: KwangErnLiew
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy