Here's a quick-and-dirty hack to allow Image Assist to insert images into WYMeditor ( loaded using Wysiwyg API and the patch at http://drupal.org/node/362137#comment-1479874 ).
This code overrides img_assist_textarea.js insertToEditor() function, and uses the WYMeditor API to insert the image (HTML version).
Simply add this JS code in your theme's script.js in order to test it.
I know this is a ugly hack, but I don't see ATM how to correctly plug any other editor than TinyMCE into Image Assist, since it seems to be hard-coded in the module.
Any direction on how to do this would be greatly appreciated BTW.
Comment | File | Size | Author |
---|---|---|---|
script.js.txt | 546 bytes | jfhovinne |
Comments
Comment #1
sunThanks for this first shot!
I know we still have to rewrite many old code parts of Image Assist to account for the new Wysiwyg API integration.
#380698: Add Drupal plugin support for FCKeditor contains very valuable information about how the entire "Drupal plugins" design is supposed to work out for modules like Image Assist.