• Why do you use a textarea for the content of the message in the Email tabs ??

    I use the wp editor with this code in editor.php:

    ****Replace****
    <textarea id="<?php echo $id; ?>-body" name="<?php echo $id; ?>-body" cols="100" rows="18" class="large-text code" data-config-field="<?php echo sprintf( '%s.body', esc_attr( $args['name'] ) ); ?>"><?php echo esc_textarea( $mail['body'] ); ?></textarea>
    ****with****
    <?php 
    wp_editor(stripslashes(str_replace('\\&quot;','',$mail['body'])),$id.'-body',array('textarea_name'=>$id.'-body','wpautop'=>true,'textarea_rows'=>6));
    ?>

    and it’s working 🙂

The topic ‘WP Editor integration’ is closed to new replies.