FormatRichTextViewHelper
New in version 12.0.0
Renders the submitted value of a rich text element of the event form
(properties.) in the mails of the
finisher Email of EXT:form.
The value is sanitized with the same configuration as on saving, see
Modify the allowed markup of the frontend rich text editor. The table is taken from
properties. (default:
tx_), the column from
properties. of the form element. So the moderator
sees the formatting which will be stored, without attributes of the
editor and without active content. Links with t3:// are removed, as they
can not be resolved in a mail.
Arguments of the FormatRichTextViewHelper
element- The form element of the value, usually
{formofValue. element} <formvh:. Required.render All Form Values> value- The submitted value, usually
{form. Required.Value. processed Value} formathtml(default) returns the sanitized HTML.plaintextreturns plain text with line breaks for the text part of a mail. The plain text is not escaped, so do not use it in HTML.
Example for the FormatRichTextViewHelper
{namespace e2=JWeiland\Events2\ViewHelpers}
<e2:formatRichText element="{formValue.element}"
value="{formValue.processedValue}"/>
<e2:formatRichText element="{formValue.element}" value="{formValue.processedValue}" format="plaintext"/>