X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fbidi%2Fplugin.js;h=d3ef3510246abf6127e3002deceb9853b62d72fe;hp=761e16b926124814e4a227d32007324d71f432a5;hb=614511639979907ceb0da3614122a4d8eb963ad4;hpb=039a051ccf3901311661022a30afd60fc38130c9 diff --git a/_source/plugins/bidi/plugin.js b/_source/plugins/bidi/plugin.js index 761e16b..d3ef351 100644 --- a/_source/plugins/bidi/plugin.js +++ b/_source/plugins/bidi/plugin.js @@ -48,7 +48,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { var editor = evt.editor, chromeRoot = editor.container.getChild( 1 ), - directionNode = getElementForDirection( evt.data.path.lastElement ); + directionNode = evt.data.path.block || evt.data.path.blockLimit; if ( directionNode && editor.lang.dir != directionNode.getComputedStyle( 'direction' ) ) chromeRoot.addClass( 'cke_mixed_dir_content' ); @@ -123,7 +123,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // the element and all its children, so it will get really reflected // like a mirror. (#5910) if ( dir != dirBefore ) - editor.fire( 'dirChanged', element ); + { + editor.fire( 'dirChanged', + { + node : element, + dir : dir + } ); + } editor.forceNextSelectionCheck();