Full efitor in comments

Latest Reply from Dave at 2014-08-25 03:16:36
Hi there,

Is there a way to add full text editor in comments,... i found half/solution, but it doesn't really work for replays.

As soon as i click replay editor is completely disabled.

Any suggestions?

This is code i tried:

add_filter( 'comment_form_field_comment', 'comment_editor' );

function comment_editor() {
global $post;


wp_editor( '', 'comment', array(
'textarea_rows' => 15,
'teeny' => false,
'quicktags' => false,
'media_buttons' => true
) );

$editor = ob_get_contents();


//make sure comment media is attached to parent post
$editor = str_replace( 'post_id=0', 'post_id='.get_the_ID(), $editor );

return $editor;

Comment feature is provided by WordPress. You would better apply for help on the official WordPress forum to adjust this feature.

Leave a reply

Add codeAdd image