Index: /CKEditor/branches/features/bbcode/_source/core/dom/element.js
===================================================================
--- /CKEditor/branches/features/bbcode/_source/core/dom/element.js	(revision 6706)
+++ /CKEditor/branches/features/bbcode/_source/core/dom/element.js	(revision 6707)
@@ -488,5 +488,5 @@
 				function( propertyName )
 				{
-					return this.$.currentStyle && this.$.currentStyle[ CKEDITOR.tools.cssStyleToDomStyle( propertyName ) ];
+					return this.$.currentStyle[ CKEDITOR.tools.cssStyleToDomStyle( propertyName ) ];
 				}
 			:
Index: /CKEditor/branches/features/bbcode/_source/plugins/bidi/plugin.js
===================================================================
--- /CKEditor/branches/features/bbcode/_source/plugins/bidi/plugin.js	(revision 6706)
+++ /CKEditor/branches/features/bbcode/_source/plugins/bidi/plugin.js	(revision 6707)
@@ -262,7 +262,18 @@
 	});
 
-	// If a block direction changed, we need to switch the margins of
+	// If the element direction changed, we need to switch the margins of
 	// 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 )
 	{
@@ -273,9 +284,9 @@
 		return function( name, val )
 		{
-			if ( !this.getDocument().equals( CKEDITOR.document ) && this.isBlockBoundary() )
-			{
-				var orgDir, dir;
-				if ( name == ( isAttribute || isRemoveAttribute ? 'dir' : 'direction' ) ||
-					 name == 'style' && ( isRemoveAttribute || dirStyleRegexp.test( val ) ) )
+			if ( !this.getDocument().equals( CKEDITOR.document ) )
+			{
+				var orgDir;
+				if ( ( name == ( isAttribute || isRemoveAttribute ? 'dir' : 'direction' ) ||
+					 name == 'style' && ( isRemoveAttribute || dirStyleRegexp.test( val ) ) ) && !isOffline( this ) )
 				{
 					orgDir = this.getDirection( 1 );
