Codex

Plugin API/Filter Reference/mce external plugins

This filter is used to load external TinyMCE plugins.

Example

add_filter('mce_external_plugins', 'my_custom_plugins');
function my_custom_plugins () {

        $plugins = array('table'); //Add any more plugins you want to load here

	$plugins_array = array();

        //Build the response - the key is the plugin name, value is the URL to the plugin JS
	foreach ($plugins as $plugin ) {
		$plugins_array[ $plugin ] = get_template_directory_uri() . 'tinymce/' . $plugin . '/editor_plugin.js'; 
	}
        
	return $plugins_array;
}