Index: img_assist.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist.module,v retrieving revision 1.68.2.37 diff -u -p -r1.68.2.37 img_assist.module --- img_assist.module 28 Sep 2007 08:59:11 -0000 1.68.2.37 +++ img_assist.module 30 Sep 2007 04:39:32 -0000 @@ -1874,3 +1874,20 @@ function theme_img_assist_legacy() { */ +/** + * Implementation of hook_wysiwyg_plugin(). + */ +function img_assist_wysiwyg_plugin($editor) { + switch ($editor) { + case 'tinymce': + return array( + 'drupalimage' => array( + 'path' => drupal_get_path('module', 'img_assist') .'/drupalimage', + 'theme_advanced_buttons1' => array('drupalimage'), + 'extended_valid_elements' => array('img[class|src|border=0|alt|title|width|height|align|name]'), + ) + ); + } +} + +