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.

CommentFileSizeAuthor
script.js.txt546 bytesjfhovinne
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

Status: Needs review » Needs work

Thanks 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.