CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #38836

textarea-field-content is written in one line in the emails and submit-page - missing CRs e.g.

Added by Kurt Kunig 11 months ago. Updated 6 months ago.

Status:Resolved Start date:2012-07-10
Priority:Must have Due date:
Assignee:Alex Kellner % Done:

80%

Category:Frontend Plugin
Target version:2.x
Votes: 2 (View)

Description

Your form has one field (message e.g.) with a fieldtyp "textarea". The sender inserts several line-feeds but in the Email and also in the submit-page the line-feeds disappeared!?

It also would be fine to have the possibility to declare "allowed tags" in the template parameters, so that you can insert a <b>bold text</b> in a field.

History

Updated by Kurt Kunig 11 months ago

I forgot to say that this happens in Version 2.0.0!

Updated by Alex Kellner 11 months ago

  • Category set to Frontend Plugin
  • Status changed from New to Under Review
  • Assignee set to Alex Kellner
  • Target version set to 2.x

Updated by Michael Albers 10 months ago

I can confirm the deletion of linefeeds/paragraphs. This not only occurs with text entered in textarea, but also with the rest of the text that is entered in the bodytext for email to reciever and sender aswell as the submit page.

Updated by Jonas Renggli 9 months ago

For our needs it was sufficient to Wrap {variable} with the Nl2brViewHelper in Resources/Private/Templates/Forms/PowermailAll.html

<f:format.nl2br>{variable}</f:format.nl2br>

Updated by Kurt Kunig 9 months ago

Jonas Renggli wrote:

For our needs it was sufficient to Wrap {variable} with the Nl2brViewHelper in Resources/Private/Templates/Forms/PowermailAll.html [...]

Where we have to modify the code?
I tried it but it didn't work!?
I only could see the web response site.

I did not use the variable {powermail_all} but dedicated variables in a table. I guess I have to modify another template, do I!?

Updated by Alex Kellner 9 months ago

  • Status changed from Under Review to Accepted
  • % Done changed from 0 to 100

A nl2br viewhelper around the variable {powermail_all} in the Template File PowermailAll.html fixes the problem

Resolved in Trunk, ready for TER upload with version 2.0.2

Updated by Alex Kellner 9 months ago

  • Target version changed from 2.x to 2.0.2

Updated by Alex Kellner 9 months ago

  • Status changed from Accepted to Resolved

Complete resolved:
New version 2.0.2 uploaded to TER a few minutes ago

Updated by Daniel 9 months ago

Hi

It seems that the issue "also with the rest of the text that is entered in the bodytext for email to reciever and sender aswell as the submit page" is still there...

Best.

Updated by Kurt Kunig 9 months ago

Yes, it works only with the variable {powermail_all}. If you take one concrete (textarea-)field like {meassage} or {address} e.g. the linebreaks still disappear!?

That what I got from a {powermail_all} form:
Test
Zeile 2

frei
Gruß KK

and this from a powermail-form with the variable {nachricht} although I inserted line feeds:
Test!!! Ext. Powermail auf neustem Stand! Diese Zeilen sollten nun nicht mehr zusammen gestaucht sein sondern mit Absätzen. Gruß aus Jülich Kurt Kunig

Updated by Alex Kellner 9 months ago

  • Status changed from Resolved to Under Review
  • Target version changed from 2.0.2 to 2.x
  • % Done changed from 100 to 80

Updated by Christoph Ascherl 9 months ago

Had the same issue. My workaround is to press Shift-Return in RTE which creates <br/> instead of <p></p>. These <br/> won't be stripped off.

Updated by Lorenz Ulrich 9 months ago

I can confirm this. <p>'s are stripped away in the confirmation mail.

Updated by Oliver Salzburg 7 months ago

I understand that I can use the Nl2brViewHelper in the PowermailAll template, but how are you supposed to work around this issue when not relying on the {powermail_all} placeholder?

You can't use {message -> f:format.nl2br()} as it isn't resolved. At the core, this is the same issue as http://forge.typo3.org/issues/39476 The proposed solutions to that issue do not work or are not practical.

Updated by Alex Kellner 7 months ago

  • Status changed from Under Review to Needs Feedback

See #40395 for missing line breaks, that should come from the RTE

Updated by Alex Kellner 6 months ago

  • Status changed from Needs Feedback to Resolved

I will close this issue becaus it is a mix of some different errors.
The last thing, that is open (descibed by Oliver) can be followed here #43502

Also available in: Atom PDF