WYMeditor support

jfh - April 15, 2009 - 21:25
Project:Image Assist
Version:6.x-2.0-alpha3
Component:Wysiwyg API Plugin
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:wymeditor
Description

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.

AttachmentSize
script.js.txt546 bytes

#1

sun - May 17, 2009 - 14:18
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.

 
 

Drupal is a registered trademark of Dries Buytaert.