Closed (fixed)
Project:
Wysiwyg
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2009 at 14:14 UTC
Updated:
11 Dec 2009 at 20:20 UTC
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
Comment #1
twodYou 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.