Item5812: Foswiki/TWiki Text Formatting doesn't work in System.DataForms (textarea)

pencil
Priority: Normal
Current State: Being Worked On
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
Foswiki/TWiki does not work correctly in DataForms, i.e. TextFormattingRules do not apply

Following textarea entry doesn't work:

Case 1: Textarea entry

Output:

Case 1: Output

But if you enter a space character before every line:

Case 2: Code

It works:

Case 2: Output

-- TWiki:Main/SaschaVetter - 24 Jul 2008

I can confirm the not working text formattings at the beginning of a line. To reproduce the workaround, I need to add spaces to the end of each line, too.

-- TWiki:Main.OliverKrueger - 24 Jul 2008

you should not wait for Sascha, cos he is not working on this, therefore I removed him from WaitingFor

We are using the DataForms for our Quality issues (e.g. for Errata reports, collaboration of projects, ...) and it is realy an issue, that formatting is not working, specially as the behaviour changed over past TWiki versions.

To everybody working on the core formatting the forms: please consider fixing this isse!

-- MatthiasThullner - 21 Feb 2010

Hello MatthiasThullner, thanks for bumping this.

In preparation for getting WYSIYWG editing onto formfields, I am working on Item5489.

On that topic is a patch, which I wrote at the beginning of my adventure. Since testing that patch I am now much wiser about what has to be done, and it's perfectly doable.

Give that patch a go - it only changes 3 lines - unfortunately it's a little too simple, and might break some nested formatted searches where the form values might contain $nop, $topic etc. tokens, in which case they will be processed by SEARCH for expansion instead of being lifted out of the meta:field verbatim.

If you are able to try the patch, let me know how it went.

-- PaulHarvey - 21 Feb 2010

ItemTemplate edit

Summary Foswiki/TWiki Text Formatting doesn't work in DataForms (textarea)
ReportedBy TWiki:Main.SaschaVetter MichaelDeckert
Codebase
SVN Range TWiki-5.0.0, Wed, 23 Jul 2008, build 17117
AppliesTo Engine
Component
Priority Normal
CurrentState Being Worked On
WaitingFor PaulHarvey, MatthiasThullner
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r6 - 25 Jun 2010, MichaelDeckert - This page was cached on 05 Jun 2020 - 18:57.

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