Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 7436)
+++ /CKEditor/trunk/CHANGES.html	(revision 7437)
@@ -84,4 +84,5 @@
 		<li><a href="http://dev.ckeditor.com/ticket/7907">#7907</a> : Fix decrease indent on RTL block in list item looses text direction.</li>
 		<li><a href="http://dev.ckeditor.com/ticket/8835">#8835</a> : Removing the right margin on IE&lt;8 to avoid mouse click confusion.</li>
+		<li><a href="http://dev.ckeditor.com/ticket/8400">#8400</a> : [IE] Fix script error when closing cellProperties dialog if table cell text is selected.</li>
 	</ul>
 	<h3>
Index: /CKEditor/trunk/_source/plugins/tabletools/dialogs/tableCell.js
===================================================================
--- /CKEditor/trunk/_source/plugins/tabletools/dialogs/tableCell.js	(revision 7436)
+++ /CKEditor/trunk/_source/plugins/tabletools/dialogs/tableCell.js	(revision 7437)
@@ -513,12 +513,7 @@
 					this.commitContent( cells[ i ] );
 
+				this._.editor.forceNextSelectionCheck();
 				selection.selectBookmarks( bookmarks );
-
-				// Force selectionChange event because of alignment style.
-				var firstElement = selection.getStartElement();
-				var currentPath = new CKEDITOR.dom.elementPath( firstElement );
-
-				this._.editor._.selectionPreviousPath = currentPath;
-				this._.editor.fire( 'selectionChange', { selection : selection, path : currentPath, element : firstElement } );
+				this._.editor.selectionChange();
 			}
 		};
Index: /CKEditor/trunk/_source/plugins/tabletools/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/tabletools/plugin.js	(revision 7436)
+++ /CKEditor/trunk/_source/plugins/tabletools/plugin.js	(revision 7437)
@@ -10,8 +10,4 @@
 	function getSelectedCells( selection )
 	{
-		// Walker will try to split text nodes, which will make the current selection
-		// invalid. So save bookmarks before doing anything.
-		var bookmarks = selection.createBookmarks();
-
 		var ranges = selection.getRanges();
 		var retval = [];
@@ -72,7 +68,4 @@
 
 		CKEDITOR.dom.element.clearAllMarkers( database );
-
-		// Restore selection position.
-		selection.selectBookmarks( bookmarks );
 
 		return retval;
