diff -r 7c58e8af1a97 MoinMoin/action/fckdialog.py
--- a/MoinMoin/action/fckdialog.py	Thu Dec 07 21:35:43 2006 +0100
+++ b/MoinMoin/action/fckdialog.py	Thu Feb 01 19:29:42 2007 -0800
@@ -246,7 +246,6 @@ def link_dialog(request):
         scriptname += "/"
     action = scriptname
     basepage = request.page.page_name.encode(config.charset)
-    request.emit_http_headers()
     request.write('''
 <!--
  * FCKeditor - The text editor for internet
@@ -397,7 +396,6 @@ def attachment_dialog(request):
     if not scriptname or scriptname[-1] != "/":
         scriptname += "/"
     action = scriptname
-    request.emit_http_headers()
     request.write('''
 <!--
  * FCKeditor - The text editor for internet
diff -r 7c58e8af1a97 MoinMoin/request/__init__.py
--- a/MoinMoin/request/__init__.py	Thu Dec 07 21:35:43 2006 +0100
+++ b/MoinMoin/request/__init__.py	Thu Feb 01 19:30:03 2007 -0800
@@ -1190,7 +1190,7 @@ space between words. Group page name is 
         sent_headers = getattr(self, 'sent_headers', 0)
         self.sent_headers = sent_headers + 1
         if sent_headers:
-            raise HeadersAlreadySentException("emit_http_headers called multiple (%d) times! Headers: %r" % (sent_headers, headers))
+            raise HeadersAlreadySentException("emit_http_headers called multiple (%d) times! Headers: %r" % (sent_headers, all_headers))
         #else:
         #    self.log("Notice: emit_http_headers called first time. Headers: %r" % all_headers)
 
diff -r 7c58e8af1a97 wiki/htdocs/applets/moinFCKplugins/moinbehaviour/fckplugin.js
--- a/wiki/htdocs/applets/moinFCKplugins/moinbehaviour/fckplugin.js	Thu Dec 07 21:35:43 2006 +0100
+++ b/wiki/htdocs/applets/moinFCKplugins/moinbehaviour/fckplugin.js	Thu Feb 01 19:28:52 2007 -0800
@@ -59,7 +59,7 @@ function Doc_OnKeyUp_IE()
  * ##########################################################################
  */
 
-if (FCK.EditorDocument.attachEvent) // IE
+if (document.attachEvent) // IE
 {
   FCK.EditorDocument.attachEvent('onkeydown', Doc_OnKeyDown_IE);
   //FCK.AttachToOnSelectionChange(Doc_OnKeyUp_IE);
diff -r 7c58e8af1a97 wiki/htdocs/applets/moinFCKplugins/moinformat/fckplugin.js
--- a/wiki/htdocs/applets/moinFCKplugins/moinformat/fckplugin.js	Thu Dec 07 21:35:43 2006 +0100
+++ b/wiki/htdocs/applets/moinFCKplugins/moinformat/fckplugin.js	Thu Feb 01 19:28:52 2007 -0800
@@ -20,6 +20,7 @@ var MoinToolbarFontFormatCombo = functio
 var MoinToolbarFontFormatCombo = function()
 {
  this.Command =  FCKCommands.GetCommand('FontFormat');
+ this.CommandName = 'FontFormat';
 }
 
 // Inherit from MoinToolbarSpecialCombo.
diff -r 7c58e8af1a97 wiki/htdocs/applets/moinFCKplugins/selection/fckplugin.js
--- a/wiki/htdocs/applets/moinFCKplugins/selection/fckplugin.js	Thu Dec 07 21:35:43 2006 +0100
+++ b/wiki/htdocs/applets/moinFCKplugins/selection/fckplugin.js	Thu Feb 01 19:28:52 2007 -0800
@@ -12,13 +12,14 @@ function showObj(title, obj)
 
 // --------------------------------
 
-if (FCK.EditorWindow.getSelection) // Gecko
+if (window.getSelection) // Gecko
 { 
   // assume exactly one selection
   
   FCKSelection.GetStartNode = function()
     {
       var oSelection = FCK.EditorWindow.getSelection();
+      if(oSelection == null) return null;
       var oContainer = oSelection.getRangeAt(0).startContainer;
       var iOffset = oSelection.getRangeAt(0).startOffset;
       if (oContainer.childNodes.length>iOffset) 
@@ -36,6 +37,7 @@ if (FCK.EditorWindow.getSelection) // Ge
   FCKSelection.GetEndNode = function()
     {
       var oSelection = FCK.EditorWindow.getSelection();
+      if(oSelection == null) return null;
       var oContainer = oSelection.getRangeAt(0).endContainer;
       var iOffset = oSelection.getRangeAt(0).startEndset;
       if (oContainer.childNodes.length>iOffset) 
