• 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.

Item5210: EDITTABLE with a simple text input in which the user has put %BR% gets trunkated at the first BR

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension EditTablePlugin Low Closed   minor 4.2.0

Edit Form Data

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

Detail

EDITTABLE with a simple text input in which the user has put %BR% gets trunkated at the first BR

This is also a problem in 4.1.2

I guess it is yet another result of the generic problem that EDITTABLE is operating in view mode and that the content in the editable fields is show with the TWiki variables expanded. We need to get the EDITTABLE to show the values inside the fields as raw unrendered data.

Example below

in verbatim

%EDITTABLE{ changerows="off" quietsave="off"  }%
| Services: | TD, PC %EDITCELL{checkbox,2,TD,TM,PC,PS,FM,KL}% | <small><table><tr><td>TD...Technical Documentation %BR% TM...Translation Management %BR% PC...Product Catalogs </td><td>PS...Processes and Systems %BR% FM...Feedback Management %BR% KL...Knowledge Logistics</td></tr></table></small> |

and the real stuff. To view just edit but do not save!!! You can see in edit mode what gets saved.

Services: TD, PC
TD...Technical Documentation
TM...Translation Management
PC...Product Catalogs
PS...Processes and Systems
FM...Feedback Management
KL...Knowledge Logistics

What is more surprising is that even with a html br we have the problem.

Well. Using multiple lines in a single line field is perhaps a bit silly so this is not a release blocker at all.

-- TWiki:Main/KennethLavrsen - 05 Jan 2008

The problem was that <br /> got translated to a unicode linebreak char, but never translated back. This has been like this for ages.

-- TWiki:Main.ArthurClemens - 05 Jan 2008

This is obviously not the final solution because it will convert linebreaks in a textarea to <br />.

-- TWiki:Main.ArthurClemens - 06 Jan 2008

Unicode linebreak chars are now converted back for all input elements except textareas.

-- TWiki:Main.ArthurClemens - 06 Jan 2008

ItemTemplate
Summary EDITTABLE with a simple text input in which the user has put %BR% gets trunkated at the first BR
ReportedBy TWiki:Main.KennethLavrsen
Codebase 4.1.2, 4.2.0, ~twiki4
SVN Range TWiki-4.3.0, Sun, 30 Dec 2007, build 16120
AppliesTo Extension
Component EditTablePlugin
Priority Low
CurrentState Closed
WaitingFor

Checkins TWikirev:16152 TWikirev:16153 TWikirev:16154 TWikirev:16155 TWikirev:16156 TWikirev:16157
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r12 - 2008-01-22 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback