You appear to be a bot. Output may be restricted
Description
Implement the 'mce_external_plugins' filter
Usage
$array = bw_filter_mce_plugin( $plugins );
Parameters
- $plugins
- ( array ) required – array of external plugins for TinyMCE
Returns
array $plugins with oik_button_plugin.js added for bwbutton Add the jQuery code to be executed when the bwbutton_button is clicked Note: The _button suffix is not used… not quite sure where the linkage isSource
File name: oik/oik-button-shortcodes.phpLines:
1 to 9 of 9
function bw_filter_mce_plugin( $plugins ) { global $tinymce_version; if ( version_compare( $tinymce_version, '4018' ) >= 0 ) { $plugins['bwbutton'] = oik_url( 'admin/oik_button_plugin_4.js' ); } else { $plugins['bwbutton'] = oik_url( 'admin/oik_button_plugin.js' ); } return $plugins; }View on GitHub View on Trac