• Resolved Nicolaas

    (@nicolaas)


    I added textarea in block. If I want to put return after sentence this obviously does not show up on front-end. So I tried rich text area and classic editor. Issue is that if I give a return at the end of a sentence I get <p></p> in frontend shown in text. See link to page above and see <p> in middle of page text.

    How can I solve this?

    Nicolaas

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you using handlebars? If so, you need to put triple curly brackets instead of double.

    • This reply was modified 3 years, 8 months ago by jonroc804.
    • This reply was modified 3 years, 8 months ago by jonroc804.
    • This reply was modified 3 years, 8 months ago by jonroc804.
    Thread Starter Nicolaas

    (@nicolaas)

    Thank you very much for the quick reply.

    This solved the issue in the first description. Works great

    I have added a description extender (repeater) and tried the same there, but here this does not work?

    <!– Description POI –>
    <p class=”autosize”>description_poi</p>

    Do the above is now working, thank you again.

    Issue is with code below:

    <!– Repeater Description POI –>
    {{#each description_extender}}
    <h4>{{description-heading-poi}}</h4>
    <p>{{extra_description_poi}}</p>
    {{/each}}

    Do you by any chance why this works differently?

    Nicolaas

    Thread Starter Nicolaas

    (@nicolaas)

    I tried this:

    <!– Description POI –>
    <p class=”autosize”>description_poi</p> <!- triple handlebars here WYSIWYG classic editor workarea – returns work fine!>

    <!– Repeater Description POI –>
    {{#each description_extender}}
    <h4>{{description-heading-poi}}</h4>
    <p>extra_description_poi</p> <!- also triple handlebars here and WYSIWYG classic editor workarea – does NOT work!>
    {{/each}}

    Thread Starter Nicolaas

    (@nicolaas)

    I was too fast. Checking second time it worked.

    So thanks Jon!

    Nicolaas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Returns in text(area)?’ is closed to new replies.