I need a multi line textarea which gets encapsulated in Fluid by a <h1>
.
If I make the field in TCA richtext, CKeditor throws a <p>
tag arround it, so I get
<h1><p>bla<br/>next line</p></h1>
This is not valid HTML. I tried some settings in CKEditor like config.autoParagraph: false
but it does not help.
When I make the text field not richttext the frontend does not give linebreaks, however I notice multiline gets saved to the database. Is there a typoscript way of outputting this?
you may use <f:format.nl2br>
without RTE.
or <f:format.raw>
/ <f:format.html>
with RTE.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.