﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8007	onBeforeUnload event is fired in IE by switchin modes	Alfonso Martínez de Lizarrondo	Garry Yao	"Modify the replacebyclass example adding this code:

{{{
	<script type=""text/javascript"">

		window.onbeforeunload = function() {
			if (typeof(CKEDITOR)!='undefined')
			{
				var oEditor = CKEDITOR.instances.editor1 ;
				if (oEditor.checkDirty())
					return ""The text has been modified, do you want to save it before closing?."";
			}
			return undefined;
		}

	</script>
}}}

Now load the page and switch to source and back to design.

Expected: nothing special.

Results: the onBeforeUnload is fired on each change, and the checkDirty() returns true (#6274)

Tested with IE8. Firefox works fine, only shows the alert if the content has been modified and you want to close the page.
"	Bug	closed	Normal	CKEditor 3.6.1	General	3.6.1	fixed		
