Index: /FCKeditor/trunk/_whatsnew.html
===================================================================
--- /FCKeditor/trunk/_whatsnew.html	(revision 907)
+++ /FCKeditor/trunk/_whatsnew.html	(revision 908)
@@ -257,4 +257,8 @@
 		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1227">#1227</a>] The color
 			commands used an unnecessary temporary variable. Thanks to Matthias Miller</li>
+		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/389">#389</a>] Pasting text with
+			comments from Word won't generate errors in IE, thanks to the idea from Swift.</li>
+		<li>The pasting area in the Paste from Word dialog is focused on initial load</li>
+		<li>Some fixes related to html comment handling in the Word clean up routine</li>
 	</ul>
 	<h3>
Index: /FCKeditor/trunk/editor/dialog/fck_paste.html
===================================================================
--- /FCKeditor/trunk/editor/dialog/fck_paste.html	(revision 907)
+++ /FCKeditor/trunk/editor/dialog/fck_paste.html	(revision 908)
@@ -51,8 +51,17 @@
 		oFrame.style.display = '' ;
 
+		// Avoid errors if the pasted content has any script that fails: #389
+		var oDoc = oFrame.contentWindow.document ;
+		oDoc.open() ;
+		oDoc.write('<html><head><script>window.onerror = function() { return true ; };<\/script><\/head><body><\/body><\/html>') ;
+		oDoc.close() ;
+		
 		if ( oFrame.contentDocument )
 			oFrame.contentDocument.designMode = 'on' ;
 		else
 			oFrame.contentWindow.document.body.contentEditable = true ;
+
+		// Set the focus on the pasting area
+		oFrame.contentWindow.focus();
 	}
 	else
@@ -223,5 +232,5 @@
 
 	// Remove comments [SF BUG-1481861].
-	html = html.replace(/<\!--.*-->/g, '' ) ;
+	html = html.replace(/<\!--.*?-->/g, '' ) ;
 
 	html = html.replace( /<(U|I|STRIKE)>&nbsp;<\/\1>/g, '&nbsp;' ) ;
@@ -231,4 +240,11 @@
 	// Remove "display:none" tags.
 	html = html.replace( /<(\w+)[^>]*\sstyle="[^"]*DISPLAY\s?:\s?none(.*?)<\/\1>/ig, '' ) ;
+
+	// Remove language tags
+	html = html.replace( /<(\w[^>]*) language=([^ |>]*)([^>]*)/gi, "<$1$3") ;
+
+	// Remove onmouseover and onmouseout events (from MS Word comments effect)
+	html = html.replace( /<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi, "<$1$3") ;
+	html = html.replace( /<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi, "<$1$3") ;
 
 	if ( FCKConfig.CleanWordKeepsStructure )
