Skip to content

Commit 0996fbe

Browse files
committed
Merge branch 't/9798'
2 parents 1e093a0 + dae1ef6 commit 0996fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/menu/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ CKEDITOR.plugins.add( 'menu', {
344344

345345
// Apply the editor mixed direction status to menu.
346346
var path = editor.elementPath(),
347-
mixedDirCls = path.direction() != editor.lang.dir ? ' cke_mixed_dir_content' : '';
347+
mixedDirCls = ( path && path.direction() != editor.lang.dir ) ? ' cke_mixed_dir_content' : '';
348348

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

0 commit comments

Comments
 (0)