bbp_get_tiny_mce_plugins( array $plugins = array() )

Edit TinyMCE plugins to match core behaviour

Description

See also

Parameters

$plugins

(array) (Optional)

Default value: array()

Return

(array)

Source

File: bp-forums/common/template.php

function bbp_get_tiny_mce_plugins( $plugins = array() ) {

	$plugins = (array) $plugins;

	// Unset fullscreen
	foreach ( $plugins as $key => $value ) {
		if ( 'fullscreen' === $value ) {
			unset( $plugins[$key] );
			break;
		}
	}

	// Add the tabfocus plugin
	$plugins[] = 'tabfocus';

	return apply_filters( 'bbp_get_tiny_mce_plugins', $plugins );
}

Changelog

Changelog
Version Description
bbPress (r4574) 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.