5

I have a rich text field that I don't want wrapped in anything.

I just want a text area field, but I'm not sure how to get a text area without making it rich text, as the only multiline text field is the rich text field.

If it is going to be rich text, I need to be able to remove wrapping tags and control those.

1 Answer 1

6

If what you want is a multi-line plain text field, then check the Allow line breaks checkbox for that field.

2
  • Does a plain text field wrap your text only? Because it doesn't seem to generate <br> tags. May 26, 2015 at 9:29
  • You will want to use twig's nl2br filter to change the newlines (in the text field) to <br> tags Apr 8, 2019 at 16:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.