Index: /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js	(revision 2532)
+++ /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js	(revision 2533)
@@ -396,4 +396,5 @@
 		selected[0].addClass( 'cke_dialog_tab_selected' );
 		selected[1].show();
+		var me = this;
 
 		// Place the bridge just under the selected tab. Count 1px left and right
@@ -401,7 +402,11 @@
 		setTimeout( function()
 			{
+				var selectedElement = selected[0].getFirst().$;
 				bridge.setStyles(
 						{
-							left : ( selected[0].getFirst().$.offsetLeft + 17 || 0 ) + 'px',
+							left : me._.editor.lang.dir == 'ltr' ? ( selectedElement.offsetLeft + 17 || 0 ) + 'px' : 'auto',
+							right : me._.editor.lang.dir == 'rtl' ?
+								( selectedElement.offsetParent.offsetWidth - selectedElement.offsetLeft - selectedElement.offsetWidth + 17 || 0 ) + 'px' :
+								'auto',
 							width : ( selected[0].getFirst().$.offsetWidth - 2 || 0 ) + 'px'
 						});
Index: /CKEditor/branches/prototype/_source/plugins/wysiwygarea/plugin.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/wysiwygarea/plugin.js	(revision 2532)
+++ /CKEditor/branches/prototype/_source/plugins/wysiwygarea/plugin.js	(revision 2533)
@@ -223,5 +223,5 @@
 								data =
 									editor.config.docType +
-									'<html dir="' + editor.config.contentsLangDirection + '">' +
+									'<html dir="' + editor.lang.dir + '">' +
 									'<head>' +
 										'<link href="' + editor.config.contentsCss + '" type="text/css" rel="stylesheet" _fcktemp="true"/>' +
