- addButtonCommand( editor, 'ignore', editor.lang.scayt.ignore,\r
- 'scayt_ignore', ignore_command, 'scayt_control', 1);\r
- addButtonCommand( editor, 'ignore_all', editor.lang.scayt.ignoreAll,\r
- 'scayt_ignore_all', ignore_all_command, 'scayt_control', 2);\r
- addButtonCommand( editor, 'add_word', editor.lang.scayt.addWord,\r
- 'scayt_add_word', addword_command, 'scayt_control', 3);\r
+ if ( in_array( "all",contextCommands ) || in_array("ignoreall",contextCommands) )\r
+ {\r
+ var ignore_all_command = {\r
+ exec: function(){\r
+ scayt_control.ignoreAll(element.$);\r
+ }\r
+ };\r
+ addButtonCommand(editor, 'ignore_all', editor.lang.scayt.ignoreAll, 'scayt_ignore_all', ignore_all_command, 'scayt_control', 2);\r
+ mainSuggestions['scayt_ignore_all'] = CKEDITOR.TRISTATE_OFF;\r
+ }\r