I using Drupal 7 and the WYSIWYG module and the TinyMCE (3.4.2) plugin. I want to install a plugin for TinyMCE.

I placed the plugin folder in the right directory.


However, the plugin doesn't show up in my configuration checkboxes for the WYSIWYG configuration. What else do I need to do to enable a contributed plugin?


You need to inform the WYSIWYG module that you've installed a plugin, it won't know it's there otherwise. It will involve writing a small custom module.

Have a look in the wysiwyg.api.php and wysiwyg.api.js files included in the root of the WYSIWYG module folder; there are examples and very good documentation explaining exactly what you need to do.

The most important (perhaps only) hook you'll need to implement is hook_wysiwyg_plugin()

  • Thanks for the reply, I see what you are talking about, however I am not sure where to place the hook_wysiwyg_plugin() I put it in the wysiwyg.api.php file, however that didn't do anything. – VanD Jan 24 '12 at 21:37
  • You need to put that code in a custom module (see the Module Developer's Guide). If your module name is MYMODULE then the hook name you want will be MYMODULE_wysiwyg_plugin() – Clive Jan 24 '12 at 22:02
  • Thanks, however, it's not a Drupal Module, but a TinyMCE plugin. sourceforge.net/tracker/… – VanD Jan 24 '12 at 22:44
  • Yep, you need to write a custom Drupal module to inform WYSIWYG about the TinyMCE plugin so it knows to allow you to configure it from the WYSIWYG settings forms. – Clive Jan 24 '12 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.