Index: fck.js
===================================================================
--- fck.js	(wersja 2496)
+++ fck.js	(kopia robocza)
@@ -984,9 +984,6 @@
 	// Listen for keystroke events.
 	FCK.KeystrokeHandler.AttachToElement( FCK.EditorDocument ) ;
 
-	if ( FCK._ForceResetIsDirty )
-		FCK.ResetIsDirty() ;
-
 	// This is a tricky thing for IE. In some cases, even if the cursor is
 	// blinking in the editing, the keystroke handler doesn't catch keyboard
 	// events. We must activate the editing area to make it work. (#142).
@@ -995,6 +992,9 @@
 
 	FCK.OnAfterSetHTML() ;
 
+	if ( FCK._ForceResetIsDirty )
+		FCK.ResetIsDirty() ;
+
 	// Restore show blocks status.
 	FCKCommands.GetCommand( 'ShowBlocks' ).RestoreState() ;
 
