Hello,

I want to know if a generic wayd to code filter's plugins exists. For exemple, i want to use this filter : http://drupal.org/project/issues/collapse_text on my website. The only way to use it for now is to tell user to add the [collapse] markup. Now i want to help him by adding a button that will add the correct HTML code. Is there any project which try to do that?

Comments

twod’s picture

Category: bug » support
Status: Active » Fixed

You can easily create a so called "Drupal plugin", which is a generic editor independent plugin and uses Wysiwyg module's API to interact with the editors. It's currently a bit limited but works fine for plugins which inserts tags, like Teaser Break (bundled), Column filter or Image Assist. You can also write 'native plugins' for each individual editor and tell Wysiwyg module about them. That's probably more time-consuming though and you'll need to write a new plugin for each editor. There is documentation on this in wysiwyg/wysiwyg.api.php (-dev snapshots).

The hook implementations and plugin itself can either be integrated into the main module itself, or exist as a 'bridging' module, as is the case with IMCE and IMCE Wysiwyg bridge.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.