bbp_get_tiny_mce_plugins( array $plugins = array() )

Edit TinyMCE plugins to match core behaviour

Description

See also

Parameters

$plugins

(Optional)

Default value: array()

Return

(array)

Source

File: bp-forums/common/template.php

2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
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.