+ editor.getCommand( 'bidirtl' ).setState( selectionDir == 'rtl' ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );\r
+ editor.getCommand( 'bidiltr' ).setState( selectionDir == 'ltr' ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );\r
+\r
+ var chromeRoot = editor.container.getChild( 1 );\r
+\r
+ if ( selectionDir != editor.lang.dir )\r
+ chromeRoot.addClass( 'cke_mixed_dir_content' );\r
+ else\r
+ chromeRoot.removeClass( 'cke_mixed_dir_content' );\r