The bbPress team decided to disable the fancy editor from version 2.3.1 even if on configuration panel you can actually set it as default. The setting does not work.

I don’t know why the team decided to disable it, but it can be a real problem for who was used to rely on that editor (forum participants don’t want to see/user HTML code).

There are a couple of plugins that enable the editor again but there is a problem with colored text: when entered by a non-admin user a <span> tag is shown.

The full patch to enable even the colors should be this one (you can add the code on the “functions.php” file of your theme:

add_filter( 'bbp_after_get_the_content_parse_args', 'pf_bbp_after_get_the_content_parse_args');
function pf_bbp_after_get_the_content_parse_args($args = array()) {
$args['tinymce'] = true;
$args['teeny'] = false;
return $args;
}

add_filter('bbp_kses_allowed_tags', 'pf_bbp_kses_allowed_tags');
function pf_bbp_kses_allowed_tags($tags) {
$tags['span'] = array('style'=>true);
return $tags;
}

The “pf” prefix on functions’ names is only a prefix to avoid conflicts. This patch should enable the editor, full version, and adds the support for the tag generated by the editor when a text is colored.

Similar Posts

Leave a Reply