? .wysiwyg.admin.inc.swp
? .wysiwyg.module.swp
Index: wysiwyg.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/wysiwyg.admin.inc,v
retrieving revision 1.25
diff -u -r1.25 wysiwyg.admin.inc
--- wysiwyg.admin.inc	24 Oct 2010 22:05:07 -0000	1.25
+++ wysiwyg.admin.inc	12 Nov 2010 13:35:36 -0000
@@ -107,6 +107,9 @@
     '#theme' => 'wysiwyg_admin_button_table',
   );
 
+  $project_page = t('Visit project page.');
+  $l_args = array('attributes' => array('target' => '_blank'));
+
   $plugins = wysiwyg_get_plugins($profile->editor);
   // Generate the button list.
   foreach ($plugins as $name => $meta) {
@@ -123,22 +126,27 @@
           }
           $icon = file_exists($img_src) ? '<img src="' . base_path() . $img_src . '" title="' . $button . '" style="border: 1px solid grey; vertical-align: middle;" />' : '';
         }
-        $title = (isset($meta['url']) ? l($title, $meta['url'], array('target' => '_blank')) : $title);
         $title = (!empty($icon) ? $icon . ' ' . $title : $title);
         $form['wysiwyg_buttons'][$name][$button] = array(
           '#type' => 'checkbox',
           '#title' => $title,
           '#default_value' => !empty($profile->settings['buttons'][$name][$button]) ? $profile->settings['buttons'][$name][$button] : FALSE,
         );
+        if (isset($meta['url'])){
+          $form['wysiwyg_buttons'][$name][$button]['#description'] = l($project_page, $meta['url'], $l_args);
+        }
       }
     }
     else if (isset($meta['extensions']) && is_array($meta['extensions'])) {
       foreach ($meta['extensions'] as $extension => $title) {
         $form['wysiwyg_buttons'][$name][$extension] = array(
           '#type' => 'checkbox',
-          '#title' => isset($meta['url']) ? l($title, $meta['url'], array('target' => '_blank')) : $title,
+          '#title' => $title,
           '#default_value' => !empty($profile->settings['buttons'][$name][$extension]) ? $profile->settings['buttons'][$name][$extension] : FALSE,
         );
+        if (isset($meta['url'])){
+          $form['wysiwyg_buttons'][$name][$extension]['#description'] = l($project_page, $meta['url'], $l_args);
+        }
       }
     }
   }
