• Resolved MarionFW

    (@marionfw)


    I’ve got a text area where I regularly add short information (admin side); each line of information should appear on a new line, but all text is put in one large text block. html breaks don’t work either.

    Should I convert the field to a rich text field, or can I solve this by using specific css?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Rich text field will fix it, but line breaks are supposed to work in text-area fields.

    You can make the text-area show the line breaks by adding a custom CSS rule (in the plugin settings Custom CSS) like this:

    .text-area .textarea {
        white-space: pre-wrap;
    }
    Thread Starter MarionFW

    (@marionfw)

    Thanks for helping out. I added

    .textarea {
        white-space: pre-wrap;
    }

    as adding the whole code did not work.
    Looks good now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘break disappears in text area’ is closed to new replies.