Index: /CKEditor/trunk/_source/plugins/bidi/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/bidi/plugin.js	(revision 6550)
+++ /CKEditor/trunk/_source/plugins/bidi/plugin.js	(revision 6551)
@@ -266,4 +266,15 @@
 	// the element and all its children, so it will get really reflected
 	// like a mirror. (#5910)
+	function isOffline( el )
+	{
+		var html = el.getDocument().getBody().getParent();
+		while ( el )
+		{
+			if ( el.equals( html ) )
+				return false;
+			el = el.getParent();
+		}
+		return true;
+	}
 	function dirChangeNotifier( org )
 	{
@@ -276,7 +287,7 @@
 			if ( !this.getDocument().equals( CKEDITOR.document ) )
 			{
-				var orgDir, dir;
-				if ( name == ( isAttribute || isRemoveAttribute ? 'dir' : 'direction' ) ||
-					 name == 'style' && ( isRemoveAttribute || dirStyleRegexp.test( val ) ) )
+				var orgDir;
+				if ( ( name == ( isAttribute || isRemoveAttribute ? 'dir' : 'direction' ) ||
+					 name == 'style' && ( isRemoveAttribute || dirStyleRegexp.test( val ) ) ) && !isOffline( this ) )
 				{
 					orgDir = this.getDirection( 1 );
