Home Forums Plugin Support WP User Frontend (Free Version) Textarea "Normal" option delete enters

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  rich-art 5 years, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8142

    rich-art
    Participant
    Post count: 24

    Hi, i've an Texterea Field with the option “Normal” selected.
    When i type a text with enters (line spaces). The enters don't show up in my browser. It's transformed in one long text without spaces.

    I don't want to use Rich- or TinyRich-textarea because it break my single.php when someone paste a text from there texteditor.

    Do you know an solution? Thanks.

    #8852

    rich-art
    Participant
    Post count: 24

    Hello, i still have this “enter” problem. Can anybody help?

    Thanks

    #8853

    rich-art
    Participant
    Post count: 24

    What i found was. When i'm using “Teeny Rich textarea”-option then the enters are working. Is there a way to disable certain buttons in the texteditor-toolbar? I don't want my visitors to put links and quotes in theire posts.

    #8887

    Tareq Hasan
    Keymaster
    Post count: 2831

    When you are printing the value, you need to use something like this: <?php echo nl2br( get_post_meta( $post->ID, 'your_meta_key', true ) ); ?>. The nl2br() function will convert the new lines to html line breaks.

    You can remove certain buttons, but that will require editing the plugin, which is not recommended.

    #8942

    rich-art
    Participant
    Post count: 24

    Hi Tareq, Thanks! This is where i was looking for. Super!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Textarea "Normal" option delete enters’ is closed to new replies.