[wp-testers] FCKEditor

Andrew Ozz admin at laptoptips.ca
Sun Mar 2 19:48:25 GMT 2008


> Oh, I see - it's a plugin for TMCE - I was hoping to see an  
> implementation under the WordPress hooks. :-(

The WordPress hooks are really easy :)
Both you need are filters:

function add_plugin($arr) {
   $path = get_option('siteurl') . '/' . PLUGINDIR .  /my-folder/plugin.js';
   $arr['myplugin'] = $path;

   return $arr;
}
add_filter( 'mce_external_plugins', 'add_plugin' );

function add_button($arr) {

   $arr[] = 'my_button';
   return $arr;
}
add_filter( 'mce_buttons_3', 'add_button' );


More information about the wp-testers mailing list