Index: /CKEditor/branches/features/bbcode/_source/plugins/bidi/plugin.js
===================================================================
--- /CKEditor/branches/features/bbcode/_source/plugins/bidi/plugin.js	(revision 6782)
+++ /CKEditor/branches/features/bbcode/_source/plugins/bidi/plugin.js	(revision 6783)
@@ -35,5 +35,6 @@
 
 		// If we're having BODY here, user probably done CTRL+A, let's try to get the enclosed node, if any.
-		selectedElement.is( 'body' ) && ( selectedElement = editor.getSelection().getSelectedElement() );
+		selectedElement.is( 'body' ) &&
+			( selectedElement = editor.getSelection().getRanges()[ 0 ].getEnclosedNode() );
 
 		if ( !selectedElement )
