Looking for explanation on how to add editor buttons for D7

Events happening in the community are now at Drupal community events on www.drupal.org.
mattyoung's picture

I'm trying to add buttons to both tinyMCE and Ckeditor.

From http://drupalcontrib.org/api/drupal/contributions!wysiwyg!wysiwyg.api.php/function/hook_INCLUDE_plugin/7

Supposed to be used for "Drupal plugins" (cross-editor plugins) only

Don't know what this means and not sure if this is the right hook to use.

Is there any documentation on how to do what I want?

Comments

I

Rechi's picture

I used
http://drupal.org/project/wysiwyg_tools_plus
as a start for my own wysiwyg/ckeditor plugins.
Also looking for some documentation though.

Thanks!I was confused by

mattyoung's picture

Thanks!

I was confused by hook_INCLUDE_plugin(). I found out that this is for "drupal" plugin, something entirely different. By implementing this, one plugin will work in multiple WYSIWYG editors.

For native wysiwyg editor plugin, HOOK_wysiwyg_plugin() is still there and that's what I should use.

Wysiwyg

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: