Just add this code to plugin_reg.php

if (is_dir(drupal_get_path('module', 'tinymce') . '/tinymce/jscripts/tiny_mce/plugins/g2image/')) {
  $plugins['g2image'] = array();
  $plugins['g2image']['theme_advanced_buttons3'] = array('g2image');
}

More or less that is correct, unless you want to place the g2image button by the image button, etc.

Comments

Ryanbach’s picture

Status: Postponed (maintainer needs more info) » Active
Ryanbach’s picture

Status: Active » Needs review
Ryanbach’s picture

if (is_dir(drupal_get_path('module', 'tinymce') . '/tinymce/jscripts/tiny_mce/plugins/spellchecker/')) {
  $plugins['spellchecker'] = array();
  $plugins['spellchecker']['theme_advanced_buttons3'] = array('spellchecker');
}

if (is_dir(drupal_get_path('module', 'tinymce') . '/tinymce/jscripts/tiny_mce/plugins/g2image/')) {
  $plugins['g2image'] = array();
  $plugins['g2image']['theme_advanced_buttons3'] = array('g2image');
}

Keeping this here just in case.

pomliane’s picture

Status: Needs review » Closed (won't fix)

This version of TinyMCE is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.