Index: _source/plugins/maximize/plugin.js
===================================================================
--- _source/plugins/maximize/plugin.js	(revision 4350)
+++ _source/plugins/maximize/plugin.js	Wed Oct 14 18:04:12 CST 2009
@@ -120,7 +120,9 @@
 						// Save current selection and scroll position in editing area.
 						if ( editor.mode == 'wysiwyg' )
 						{
-							savedSelection = editor.getSelection().getRanges();
+							var selection = editor.getSelection();
+							if( selection )
+								savedSelection = selection.getRanges();
 							savedScroll = mainWindow.getScrollPosition();
 						}
 						else
@@ -235,11 +237,13 @@
 						// Restore selection and scroll position in editing area.
 						if ( editor.mode == 'wysiwyg' )
 						{
+							if ( savedSelection )
+							{
-							editor.getSelection().selectRanges( savedSelection );
+								editor.getSelection().selectRanges( savedSelection );
-
-							var element = editor.getSelection().getStartElement();
-							if ( element )
-								element.scrollIntoView( true );
+								var element = editor.getSelection().getStartElement();
+								if ( element )
+									element.scrollIntoView( true );
+							}
 							else
 								mainWindow.$.scrollTo( savedScroll.x, savedScroll.y );
 						}
