Ticket #6901: 6901.patch
File 6901.patch, 1.0 KB (added by , 13 years ago) |
---|
-
_source/plugins/bidi/plugin.js
48 48 { 49 49 var editor = evt.editor, 50 50 chromeRoot = editor.container.getChild( 1 ), 51 toolbarSpace = editor.sharedSpaces && editor.sharedSpaces[ editor.config.toolbarLocation ], 51 52 directionNode = evt.data.path.block || evt.data.path.blockLimit; 52 53 54 // Put the mixed direction class on the respective element also for shared spaces. 55 toolbarSpace && ( toolbarSpace = toolbarSpace.getParent().getParent() ); 56 53 57 if ( directionNode && editor.lang.dir != directionNode.getComputedStyle( 'direction' ) ) 58 { 59 toolbarSpace && toolbarSpace.addClass( 'cke_mixed_dir_content' ); 54 60 chromeRoot.addClass( 'cke_mixed_dir_content' ); 61 } 55 62 else 63 { 64 toolbarSpace && toolbarSpace.removeClass( 'cke_mixed_dir_content' ); 56 65 chromeRoot.removeClass( 'cke_mixed_dir_content' ); 66 } 57 67 } 58 68 59 69 /**