Created
September 7, 2009 15:06
-
-
Save keithnorm/182403 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wpaInitTinymce() { | |
// Add only in Rich Editor mode | |
if ( get_user_option('rich_editing') == 'true') { | |
// add the plugin for wp25 in a new way | |
add_filter("mce_external_plugins", "wpaAddTinymcePlugin", 5); | |
} | |
} | |
// Load the TinyMCE plugin : editor_plugin.js (wp2.5) | |
function wpaAddTinymcePlugin($plugin_array) { | |
$plugin_array['wp_audio'] = WPA_URL . '/editor_plugin.js'; | |
return $plugin_array; | |
} | |
// init process for adding plugin | |
add_action('init', 'wpaInitTinymce'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment