You could probably use the inbuilt WordPress editor wp_editor()
with the message textarea. See here for more info: https://codex.wordpress.org/Function_Reference/wp_editor
@henrywright One question as this topic interests me a lot.
To make it work, I should replace the html form tags in the bp-legacy/members/single/messages/compose.php with this function or am I missing something here?
If possible, could you put an example, with code?
Thanks in advance!
Sorry to be so… newbie but could you be more precise on the way to do it ? Please.
Hi @espellcaste
Try adding this to compose.php right under the private message <textarea></textarea>
wp_editor( '', 'content' );
I do believe that should be enough to get the basic editor working for private messages on the compose screen.
Note 1: Untested
Note 2: You can also pass an array of arguments in the form of $settings
. This is optional. It will let you do slightly more advanced stuff like load TinyMCE or quicktags. See the Codex link above for more info.