• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6013: EDITTABLE breaks TOOLTIP

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension EditTablePlugin Normal New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

If I put a cal to TOOLTIPinside an EDITTABLE cell, when the table is saved, the TOOLTIP code is transformed into incorrect JavaScript.

I wouldn't mind so much if it was transformed into correct JavaScript, but after editing the table, the result doesn't work.

Initial content of table

 %EDITTABLE{format="label|textarea,3x30|"}%
| apple | %TOOLTIP{TEXT="Whaoooo !" FONTCOLOR="#336699" TITLE="Tooltip" SHADOW="true" SHADOWCOLOR="#ccaacc" FONTSIZE="18px"}% put your mouse here, you should see a tooltip %TOOLTIP{END}%| 

Post-edit with EDITTABLE

 %EDITTABLE{format="label|textarea,3x30|"}%
| apple | <a border="0" href="javascript:void(0);"  onmouseover="TEXT="Whaoooo !" FONTCOLOR="#336699" TITLE="Tooltip" SHADOW="true" SHADOWCOLOR="#ccaacc" FONTSIZE="18px";return escape('')"> put your mouse here, you should see a tooltip </A> |

(If the cell isn't a textarea, it's worse because the content is truncated badly.)

Note that a %TWISTY% within an editable cel is not expanded to the equivalent JS. The %TOOLTIP% should not be expanded either.

Workaround: use the "without plugin installed" JS as shown in ToolTipPlugin examples.

-- TWiki:Main/VickiBrown - 22 Sep 2008

What version of TWiki and EditTablePlugin is this?

-- TWiki:Main.KennethLavrsen - 23 Sep 2008

Found in TWiki 4.05 with various patch updates running EditTable 4.8.4, $Rev: 17302 (04 Aug 2008)

Reproducible in TWiki 4.1.2

EditTable docs say "Any TWiki variable inside a table cell will be preserved. For instance, %TOPIC% will not get expanded to the current topic name."

-- TWiki:Main.VickiBrown - 23 Sep 2008

For some reason ToolTipPlugin has the rendering in postRenderingHandler. This is after EditTablePlugin can protect the tags. Change it to commonTagsHandler and it works.

-- TWiki:Main.ArthurClemens - 02 Nov 2008

ItemTemplate
Summary EDITTABLE breaks TOOLTIP
ReportedBy TWiki:Main.VickiBrown
Codebase

SVN Range TWiki-5.0.0, Fri, 12 Sep 2008, build 17509
AppliesTo Extension
Component EditTablePlugin
Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-11-02 - ArthurClemens
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback