Ticket #6901: 6901.patch

File 6901.patch, 1.0 KB (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/bidi/plugin.js

     
    4848        {
    4949                var editor = evt.editor,
    5050                        chromeRoot = editor.container.getChild( 1 ),
     51                        toolbarSpace = editor.sharedSpaces && editor.sharedSpaces[ editor.config.toolbarLocation ],
    5152                        directionNode = evt.data.path.block || evt.data.path.blockLimit;
    5253
     54                // Put the mixed direction class on the respective element also for shared spaces.
     55                toolbarSpace && ( toolbarSpace = toolbarSpace.getParent().getParent() );
     56
    5357                if ( directionNode && editor.lang.dir != directionNode.getComputedStyle( 'direction' ) )
     58                {
     59                        toolbarSpace && toolbarSpace.addClass( 'cke_mixed_dir_content' );
    5460                        chromeRoot.addClass( 'cke_mixed_dir_content' );
     61                }
    5562                else
     63                {
     64                        toolbarSpace && toolbarSpace.removeClass( 'cke_mixed_dir_content' );
    5665                        chromeRoot.removeClass( 'cke_mixed_dir_content' );
     66                }
    5767        }
    5868
    5969        /**
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy