You appear to be a bot. Output may be restricted
Description
Implement 'mce_external_plugins' filter to name the plugin file for the bwshortc_buttonA side effect of this filter is to ensure that the jQuery for quicktags is also loaded which means that the [] quicktag will always be active regardless of the value of its checkbox when the oik shortcodes for Tiny MCE is checked. In WordPress 3.8 $tinymce_version = '359-20131026'; In WordPress 3.9 $tinymce_version = '4018-20140304'; For TinyMCE version 4 we deliver different jQuery code.
Usage
bw_shortc_filter_mce_plugin( $plugins );
Parameters
- $plugins
- ( mixed ) required –
Returns
voidSource
File name: oik/oik-shortc-shortcodes.phpLines:
1 to 12 of 12
function bw_shortc_filter_mce_plugin( $plugins ) { bw_load_admin_scripts(); global $tinymce_version; if ( version_compare( $tinymce_version, '4018' ) >= 0 ) { $plugins['bwshortc'] = oik_url( 'admin/oik_shortc_plugin_4.js' ); } else { $plugins['bwshortc'] = oik_url( 'admin/oik_shortc_plugin.js' ); } return $plugins; }View on GitHub View on Trac