Search This Blog

Monday, April 12, 2010

Drupalimage plugin in TinyMCE

In order to get drupalimage plugin in TinyMCE WYSIWYG editor do the following steps

Edit the plugin_reg.php file ( \modules\tinymce\tinymce\jscripts\tiny_mce\plugins). Add
these lines (anywhere above the return statement):

$plugins['drupalimage'] = array();
$plugins['drupalimage']['theme_advanced_buttons1'] = array(’drupalimage’);
$plugins['drupalimage']['extended_valid_elements'] = array(’img[class|src|border=0|alt|title|width|height|align|name]‘);

No comments: