Recently, when working on a Forum or Discussion Platform. Users reported that, in bbPress frontend reply area, bbPress – TinyMCE Editor and Code Syntax Highlighter are not working for all users.
When we started to investigate on this issue, we found that bbPress doesn’t support TinyMCE Editor on frontend editing. Before we start, let’s know info on bbPress and Advanced Editor Tools (TinyMCE Advanced).
Advanced Editor Tools (TinyMCE Advanced):
TinyMCE Editor helps you add rich content to your website. With our easy-to-use interface, you can edit your content on your own and gives interface just like Microsoft Word.
bbPress:
bbPress is forum software from the creators of WordPress. Quickly setup a place for asyncronous discussion, subscriptions, and more! (Content From bbPress.org)
To solve this issue, you just need to do a small code syntax added to your theme functions.php
add_filter('bbp_after_get_the_content_parse_args', function($args = array()){ $args['tinymce'] = true; $args['teeny'] = false; $args['quicktags'] = false; return $args; });
Adding this code with change the frontend reply or content with TinyMCE Editor. We have shown below the before and after the code add.
Also, if you are using Enlighter Syntax Editor for code or snippet, please enable Frontend Editor in Enlighter (Settings) > Editor > Your Editor (Gutenberg/Classic/etc).
Also Read: