JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6
[ckeditor.git] / _source / plugins / menu / plugin.js
index 02b0ea3..731fed4 100644 (file)
@@ -97,7 +97,7 @@ CKEDITOR.plugins.add( 'menu',
                                                {\r
                                                        var item = this.editor.getMenuItem( itemName );\r
 \r
-                                                       if ( item )\r
+                                                       if ( item && ( !item.command || this.editor.getCommand( item.command ).state ) )\r
                                                        {\r
                                                                item.state = listenerItems[ itemName ];\r
                                                                this.add( item );\r