How to enable tinyMCE text editor to post comments in WordPress?

I would like to replicate a WordPress text editor / text editor (admin panel) in the comments section. The way site users can easily format text. A good example of what I really need can be found here on StackOverflow when someone is about to ask a question.

+5
source share
3 answers

The TinyMCEComment WordPress plugin can help you. It uses the internal TinyMCE editor (bundled with WordPress 2.0 and higher).

0
source

In your functions.php file, add the following snippet:

add_filter( 'comment_form_defaults', 'tinymce_comment_4265340' );
function tinymce_comment_4265340 ( $args ) {
    ob_start();
    wp_editor( '', 'comment', array('tinymce') );
    $args['comment_field'] = ob_get_clean();
    return $args;
}

WordPress 3.5 Twenty Twelve.

+6

Try this tutorial. It worked for me. The above answer may add TinyMCE to the response section. The tutorial shows how to fix it.

0
source

All Articles