Roots + comment_form_defaults filter

Hello,

l try to add tinymce editor in the commens section but it dont work :frowning:

But it work with the theme “twentyfourteen”.

Anyone have a idea how to fix that ?

http://www.gavick.com/magazine/tinymce-editor-in-the-comments-section.html

function gk_comment_form( $fields ) {
    ob_start();
    wp_editor( '', 'comment', array( 'teeny' => true ));
    $fields['comment_field'] = ob_get_clean();
    return $fields;
}
add_filter( 'comment_form_defaults', 'gk_comment_form' );

Roots has its own comments form. You should just be able to change the highlighted textarea to your call towp_editor.