Forums

[Plugin: Front-end Editor] Proper Handling of Line Breaks (2 posts)

  1. Anthony Atkinson
    Member
    Posted 2 years ago #

    I am a little stumped on handling of line breaks properly in my custom data. I have a submission form that updates metadata fields upon new post, and that converts line breaks into br tags, and this renders fine on the display, but when I double click the editable meta field the br tags of course show, and I would like to have them not show in a textarea but still post with line breaks converted back to br tags.

  2. scribu
    Member
    Posted 2 years ago #

    You can set the third parameter to 'rich':

    <?php editable_post_meta($post_id, 'your_key', 'rich'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic