Index: editors/js/fckeditor-2.6.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/editors/js/fckeditor-2.6.js,v
retrieving revision 1.16
diff -u -p -r1.16 fckeditor-2.6.js
--- editors/js/fckeditor-2.6.js	4 Jun 2009 00:53:10 -0000	1.16
+++ editors/js/fckeditor-2.6.js	13 Jun 2009 04:38:16 -0000
@@ -89,11 +89,25 @@ Drupal.wysiwyg.editor.instance.fckeditor
       return;
     }
 
+    // Add stylesheet for editor content area.
     if (Drupal.settings.wysiwyg.plugins[instance.wysiwygFormat].drupal[plugin].css) {
       instance.FCKConfig.EditorAreaCSS += ',' + Drupal.settings.wysiwyg.plugins[instance.wysiwygFormat].drupal[plugin].css;
     }
 
     // @see fckcommands.js, fck_othercommands.js, fckpastewordcommand.js
+    if (pluginSettings.dialog) {
+      instance.FCKCommands.RegisterCommand(plugin, new instance.FCKDialogCommand(
+        plugin,
+        this.field,
+        pluginSettings.dialog.url + '/' + this.field,
+        pluginSettings.dialog.width,
+        pluginSettings.dialog.height,
+        null,
+        null,
+        true
+      ));
+    }
+    else {
     instance.FCKCommands.RegisterCommand(plugin, {
       // Invoke the plugin's button.
       Execute: function () {
@@ -128,6 +142,7 @@ Drupal.wysiwyg.editor.instance.fckeditor
        */
       Name: plugin
     });
+    }
 
     // Register the plugin button.
     // Arguments: commandName, label, tooltip, style, sourceView, contextSensitive, icon.
@@ -135,7 +150,7 @@ Drupal.wysiwyg.editor.instance.fckeditor
   },
 
   openDialog: function(dialog, params) {
-    // @todo Implement open dialog.
+    // Who needs dialogs after all? :P
   },
 
   closeDialog: function(dialog) {
