JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.1
[ckeditor.git] / _source / plugins / menu / plugin.js
index ac45279..74fbb4f 100644 (file)
@@ -221,8 +221,11 @@ CKEDITOR.plugins.add( 'menu',
                                // Put the items in the right order.\r
                                sortItems( items );\r
 \r
+                               var chromeRoot = editor.container.getChild( 1 );\r
+                               var mixedContentClass = chromeRoot.hasClass( 'cke_mixed_dir_content' ) ? ' cke_mixed_dir_content' : '';\r
+\r
                                // Build the HTML that composes the menu and its items.\r
-                               var output = [ '<div class="cke_menu" role="presentation">' ];\r
+                               var output = [ '<div class="cke_menu' + mixedContentClass + '" role="presentation">' ];\r
 \r
                                var length = items.length,\r
                                        lastGroup = length && items[ 0 ].group;\r