Skip to content

Commit

Permalink
Fixed mixed_dir_content class on menu show.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Dec 7, 2012
1 parent 67b6c16 commit 358b472
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/menu/plugin.js
Expand Up @@ -342,11 +342,12 @@ CKEDITOR.plugins.add( 'menu', {
// Put the items in the right order.
sortItems( items );

var chromeRoot = editor.container && editor.container.getChild( 1 ),
mixedContentClass = chromeRoot && chromeRoot.hasClass( 'cke_mixed_dir_content' ) ? ' cke_mixed_dir_content' : '';
// Apply the editor mixed direction status to menu.
var path = editor.elementPath(),
mixedDirCls = path.direction() != editor.lang.dir ? ' cke_mixed_dir_content' : '';

// Build the HTML that composes the menu and its items.
var output = [ '<div class="cke_menu' + mixedContentClass + '" role="presentation">' ];
var output = [ '<div class="cke_menu' + mixedDirCls + '" role="presentation">' ];

var length = items.length,
lastGroup = length && items[ 0 ].group;
Expand Down

0 comments on commit 358b472

Please sign in to comment.