We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e093a0 + dae1ef6 commit 0996fbeCopy full SHA for 0996fbe
plugins/menu/plugin.js
@@ -344,7 +344,7 @@ CKEDITOR.plugins.add( 'menu', {
344
345
// Apply the editor mixed direction status to menu.
346
var path = editor.elementPath(),
347
- mixedDirCls = path.direction() != editor.lang.dir ? ' cke_mixed_dir_content' : '';
+ mixedDirCls = ( path && path.direction() != editor.lang.dir ) ? ' cke_mixed_dir_content' : '';
348
349
// Build the HTML that composes the menu and its items.
350
var output = [ '<div class="cke_menu' + mixedDirCls + '" role="presentation">' ];
0 commit comments