Item5812: Foswiki/TWiki Text Formatting doesn't work in System.DataForms (textarea)
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:
Output:
But if you enter a space character before every line:
It works:
--
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