bbp_forum_topics_reply_enable_tinymce_editor( array $args = array() )

Enables the TinyMce in Forum Topic and reply content.

Description

Parameters

$args

(Optional)

Default value: array()

Return

(array)

Source

File: bp-forums/functions.php

function bbp_forum_topics_reply_enable_tinymce_editor( $args = array() ) {

	// Filter for removing the visual/text tabs hide.
	add_filter('wp_editor_settings', 'bbp_forum_topics_reply_tinymce_settings');

	// Enable the tinyMce.
	$args['tinymce'] = true;
	$args['tinymce'] = array(
		'toolbar1' =>'bold, italic, bullist, numlist, blockquote, link',
	);

	return $args;
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.