{\r
var editor = evt.editor,\r
chromeRoot = editor.container.getChild( 1 ),\r
- directionNode = getElementForDirection( evt.data.path.lastElement );\r
+ directionNode = evt.data.path.block || evt.data.path.blockLimit;\r
\r
if ( directionNode && editor.lang.dir != directionNode.getComputedStyle( 'direction' ) )\r
chromeRoot.addClass( 'cke_mixed_dir_content' );\r
// the element and all its children, so it will get really reflected\r
// like a mirror. (#5910)\r
if ( dir != dirBefore )\r
- editor.fire( 'dirChanged', element );\r
+ {\r
+ editor.fire( 'dirChanged',\r
+ {\r
+ node : element,\r
+ dir : dir\r
+ } );\r
+ }\r
\r
editor.forceNextSelectionCheck();\r
\r