Forum Replies Created
-
In reply to: TinyMCE will not display on site
Hi 007elt, After much searching and some testing I found a solution that converts the HTML version of the text editor into a basic TinyMCE editor. However, you must have FTP or cPanel access to the backend files in order to add code to your theme/child theme’s functions.php file. Otherwise a plugin is the only other resort, and I prefer not to load up on plugins.
If you have access, add these two code snippets. The first one will convert the text editor to a basic TinyMCE, and the second will strip out html code from content pasted into the text editor that was copied from another web page.
function bbp_enable_visual_editor( $args = array() ) {
$args[‘tinymce’] = true;
$args[‘quicktags’] = false;
return $args;
}
add_filter( ‘bbp_after_get_the_content_parse_args’, ‘bbp_enable_visual_editor’ );function bbp_tinymce_paste_plain_text( $plugins = array() ) {
$plugins[] = ‘paste’;
return $plugins;
}
add_filter( ‘bbp_get_tiny_mce_plugins’, ‘bbp_tinymce_paste_plain_text’ );And, if you want to get rid of the word “Private” that displays in the title of a forum that is set to private, put this code in your child theme’s functions.php file also:
function remove_private_prefix_from_title( $title ) {
return ‘%s’;
}
add_filter( ‘private_title_format’, ‘remove_private_prefix_from_title’ );In reply to: TinyMCE will not display on siteI am not ranting. I am expressing frustration about a something that has been an issue for over seven years in the bbPress support forums.