Reply To: Add tinymce to Activity Post Reply Form
@danbp Thanks
I almost got it working.
I replaced lines 127 – 129 in the entry.php with this:
<div class="ac-textarea">
<?php do_action( 'activity_reply_textarea' ); ?>
</div>
I then added this to my functions:
function bpfr_reply_tiny_editor() {
// deactivation of the visual tab, so user can't play with template styles
add_filter ( 'reply_user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );
// adding tinymce tools
$editor_id = 'ac-input-bp_activity_id-';
$editor_class = 'ac-input bp-suggestions';
$settings = array(
'textarea_name' => 'ac_input_bp_',
'teeny' => true,
'media_buttons' => true,
'drag_drop_upload' => true,
'quicktags' => array(
'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close'));
// get the editor
wp_editor( $content, $editor_id, $settings );
}
add_action( 'activity_reply_textarea', 'bpfr_reply_tiny_editor' );
However I can’t figure out how to add bp_activity_id() to the $editor_id or ‘textarea_name’ =>. So of course it only works on the first reply box. Any ideas on how I can fix this?
Thanks